<template>
	<view class="order-details">
		<view class="details-title">
			<view class="title-tit">
				<image @tap="black" src="../../static/images/zuo.png" mode=""></image>
				订单详情
			</view>
		</view>
		
		
		<view class="top" v-if="identity==3" style="background: url(/static/images/goodsTop.png) no-repeat; background-size: 100% 100%;">
			
			<view class="top-text" v-if="info.showStatus!=6&&!isDetail">赊账</view>
			<view class="top-text" v-if="info.showStatus==-1&&isDetail">待处理</view>
			<view class="top-text" v-if="info.showStatus==1&&isDetail">待审核</view>
			<view class="top-text" v-if="info.showStatus==2&&isDetail">待接单</view>
			<view class="top-text" v-if="info.showStatus==3&&isDetail">待配送</view>
			<view class="top-text" v-if="info.showStatus==4&&isDetail">待收货</view>
			<view class="top-text" v-if="info.showStatus==5&&isDetail">已收货</view>
			<view class="top-text" v-if="info.showStatus==6&&isDetail">
				已取消
				<!-- 取消类型：1=用户取消，2=业务员取消，3=总经理，4=仓管取消 ，5=自提超时 -->
				<text v-if="info.cancelType==1">用户已取消</text>
				<text v-if="info.cancelType==2">业务员已取消</text>
				<text v-if="info.cancelType==3">总经理已取消</text>
				<text v-if="info.cancelType==4">仓管已取消</text>
				<text v-if="info.cancelType==5">超时已取消</text>
			</view>
		</view>
		<view class="top" v-if="identity!=3" style="background: url(/static/images/goodsTop.png) no-repeat; background-size: 100% 100%;">
			<view class="top-text" v-if="info.showStatus==-1">待处理</view>
			<view class="top-text" v-if="info.showStatus==1">待审核</view>
			<view class="top-text" v-if="info.showStatus==2">待接单</view>
			<view class="top-text" v-if="info.showStatus==3">待配送</view>
			<view class="top-text" v-if="info.showStatus==4">待收货</view>
			<view class="top-text" v-if="info.showStatus==5">已收货</view>
			<view class="top-text" v-if="info.showStatus==6">
				已取消
				<!-- 取消类型：1=用户取消，2=业务员取消，3=总经理，4=仓管取消 ，5=自提超时 -->
				<text v-if="info.cancelType==1">用户已取消</text>
				<text v-if="info.cancelType==2">业务员已取消</text>
				<text v-if="info.cancelType==3">总经理已取消</text>
				<text v-if="info.cancelType==4">仓管已取消</text>
				<text v-if="info.cancelType==5">超时已取消</text>
			</view>
	
		</view>
		<!-- 门店自提 顶部样式-->
		<view class="top-details" v-if="info.pickupWay==1">
			<view class="desc">
				<image src="/static/images/ymdzt.png" mode=""></image>
			</view>
			<image class="wz-icon" :src="info.buyer.avatarUrl?info.buyer.avatarUrl:'/static/images/header.png'" mode=""></image>
			<view class="details">
				<view class="shops-name">
					姓名：{{info.buyer.nickName}}
				</view>
				<view class="tel">
					电话：{{info.buyer.mobile}}
					<view class="call" @tap="call(info.buyer.mobile)">
						打电话
					</view>
				</view>
				<view class="shops-name">
					店铺名：{{info.buyer.shopName}}
				</view>
				<view class="shops-name">
					地址：{{info.buyer.province}} {{info.buyer.city}} {{info.buyer.area}} {{info.buyer.address}}
				</view>

			</view>
		</view>
		<!-- 门店自提 顶部样式结束 -->

		<!-- 同城配送 顶部样式-->
		<view class="top-details" v-if="info.pickupWay==0">
			<view class="desc">
				<image src="/static/images/ytcps.png" mode=""></image>
			</view>
			<image class="shops-header" :src="info.buyer.avatarUrl?info.buyer.avatarUrl:'/static/images/header.png'" mode=""></image>
			<view class="details">
				<view class="tel">
					{{info.consignee}} {{info.mobile}}
					<view class="call" @tap="call(info.mobile)">
						打电话
					</view>
				</view>
				<view class="shops-name">
					地址：{{info.province}} {{info.city}} {{info.district}} {{info.address}}
				</view>
			</view>
		</view>
		<!-- 同城配送 顶部样式结束 -->

		<!-- 商品信息 -->
		<view class="order">
			<view class="order-box">
				<view class="title">
					商品信息
				</view>
				<view class="order-list" v-for="(item,index) in info.goodsList">
					<image class="goods-img" :src="item.listPicUrl" mode=""></image>
					<view class="list-center">
						<view class="order-name">
							{{item.goodsName}}
						</view>
						<view class="specification">
							{{item.goodsSpecifitionNameValue}}
						</view>
					</view>
					<view class="list-right">
						<view class="pic">
							￥{{item.retailPrice}}
						</view>
						<view class="num">
							x{{item.number}}
						</view>
					</view>
				</view>
				<view class="order-bottom">
					<view class="bottom-left">
					</view>
					<view class="bottom-right">
						<view class="total" >
							总金额：<text class="total-pic">￥{{info.orderPrice}}</text>
						</view>
						<view class="total"  v-if="info.couponPrice">
							红包：<text class="total-pic">-￥{{info.couponPrice}}</text>
						</view>
						<view class="total"  v-if="info.activityPrice">
							满减：<text class="total-pic">-￥{{info.activityPrice}}</text>
						</view>
						<view class="total" v-if="info.showStatus>=5||(info.showStatus==-1&&identity==2)||(info.payType!=2)">
							合计：<text class="total-pic">￥{{info.actualPrice}}</text>
						</view>
						
						<view class="yyf" v-if="(info.payType==2||info.payType==1)&&info.actualPayment">
							已预付：<text class="total-pic">￥{{info.actualPayment}}</text>
						</view>
						<view class="total" v-if="(info.payType==2||info.payType==1)&&info.actualPayment">
							剩余待支付：<text class="total-pic">￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 商品信息结束 -->
		<!-- 仓库信息 -->
		<view class="public" v-if="identity!=5">
			<view class="title">
				仓库信息
			</view>
			<view class="info-box" v-if="info.portalWarehouseInfoVo">
				<view class="info-list">
					仓库：{{info.godownName}}
				</view>
				<view class="info-list">
					联系人：{{info.godownKeeperName}}
				</view>
				<view class="info-list">
					联系方式：{{info.godownKeeperMobile}}
				</view>

				<view class="btn" @tap="call(info.godownKeeperMobile)">
					打电话
				</view>
			</view>

		</view>
		<!-- 仓库信息结束 -->
		<!-- 司机信息 -->
		<view class="public" v-if="info.pickupWay==0&&info.deliveryName&&identity!=4&&info.showStatus>=3">
			<view class="title">
				司机信息
			</view>
			<view class="info-box">
				<view class="info-list">
					联系人：{{info.deliveryName}}
				</view>
				<view class="info-list">
					联系方式：{{info.deliveryMobile}}
				</view>
				<view class="btn" @tap="call(info.deliveryMobile)">
					打电话
				</view>
			</view>

		</view>
		<!-- 司机信息结束 -->
		<!-- 总经理详情样式-->
		<!-- &&info.showStatus!=4 -->
		<view class="cgfk" v-if="identity==3">
			<!-- 预付款 部分-->
			<view class="public" v-if="info.payType==2">
				<view class="title">
					<text>选择付款方式</text>
					
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								部分预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
							<view class="advance-payment" v-if="isFirstData">
								<!-- <image class="shz" src="../../static/images/goods-img.png" mode=""></image>
								<view class="price">
									<view class="t">预付金额：￥{{yu1}}</view>
								</view> -->
								<view class="pictext" v-if="getPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
									<view class="xj">
										<text class="xj-name">
											商品总金额
										</text>
										<text class="xj-right">
											￥{{filters.toFix(info.orderPrice)}}
										</text>
									</view>
									<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
										<text class="xj-name">
											优惠金额
										</text>
										<text class="xj-right">
											-￥{{info.activityPrice+info.couponPrice}}
										</text>
									</view>
									<view class="xj">
										<text class="xj-name">
											预付金额
										</text>
										<text class="xj-right">
											-￥{{filters.toFix(firstData.accountsPrice)}}
										</text>
									</view>
									<view class="xj">
										
										<text class="xj-ys">
											应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
										</text>
									</view>
									
									<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
								</view>
								
								<view class="up-img-box"  v-if="getPayChannel!=0">
									<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
								</view>
								<view class="price"  v-if="getPayChannel!=0">
									<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
								</view>
							</view>
						
					</view>
			
				</view>
				
				<view class="title" v-if="isLastData">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
				</view>
				<view class="list-box"  v-if="isLastData" >
					<view class="list" >
						<view class="advance-payment" >
								<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
									<view class="xj">
										<text class="xj-name">
											收取现金
										</text>
										<text class="xj-right">
											￥{{filters.toFix(lastData.accountsPrice)}}
										</text>
									</view>
									<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
								</view>
							<view class="up-img-box" v-if="jsPayChannel!=0">
								<image  @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="jsPayChannel!=0">
								<view class="t">尾款：￥{{lastData.accountsPrice}}</view>
							</view>
						</view>
				
					</view>
				</view>
			</view>
			<!-- 预付款结束 -->
			
			<!-- 预付款 全款-->
			<view class="public" v-if="info.payType==1">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								全款预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
			
						<view class="advance-payment">
							<view class="up-img-box">
								<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 预付款结束 -->
			
			<!-- 货到付款 -->
			<view class="public" v-if="info.payType==3">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/h.png" mode=""></image>
							<text class="tit">
								货到付款
							</text>
			
						</view>
			
					</view>
				</view>
				
				<!-- v-if="isLastData" -->
				<!-- v-if="(info.showStatus==5||info.showStatus==4)" -->
				<view class="title"  v-if="isLastData">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
				</view>
				<!-- v-if="(info.showStatus==5||info.showStatus==4)" -->
				<view class="list-box"  v-if="isLastData">
					<view class="list">
						
						<view class="advance-payment">
							
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(lastData.accountsPrice)}}
									</text>
								</view>
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							<view class="up-img-box" v-if="jsPayChannel!=0">
								<image @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="jsPayChannel!=0">
								<view class="t">尾款：￥{{lastData.accountsPrice}}</view>
							</view>
						
						</view>
				
					</view>
				</view>
				
			
			</view>
			<!-- 货到付款结束 -->
			
			
			<!-- 赊账开始 -->
			<view class="public" v-if="info.payType==4">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/s.png" mode=""></image>
							<text class="tit">
								赊账
							</text>
						</view>
			
						<view class="advance-payment"  v-if="isFirstData">
							<view class="up-img-box">
								<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t1">备注：{{firstData.remark}}</view>
							</view>
						</view>
			
					</view>
				</view>
				
				<view class="title"  v-if="isLastData">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
				</view>
				<view class="list-box"  v-if="isLastData">
					<view class="list">
						<view class="advance-payment" v-if="isLastData">
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(lastData.accountsPrice)}}
									</text>
								</view>
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							<view class="up-img-box" v-if="jsPayChannel!=0">
								<image  @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price" v-if="jsPayChannel!=0">
								<view class="t1">备注：{{lastData.remark}}</view>
							</view>
						</view>
				
					</view>
				</view>
			
			</view>
			<!-- 赊账结束 -->

		</view>
		<!-- 总经理详情样式结束 -->

		<!-- 业务员首次选择付款方式开始 -->
		<view class="jlfk" v-if="identity==2&&info.action==2&&info.showStatus!=6">
			<view class="public">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<!-- 部分预付 -->
					<view class="list">
						<view class="check-box" @tap="payment(0)" v-if="!isZeroOrder">
							<image class="nocheck" :src="paymentStatus==0?'/static/images/check.png':'/static/images/nocheck.png'" mode=""></image>
							<text class="tit">
								部分预付
							</text>
							<text class="fu">
								注：需要提供预付信息
							</text>
						</view>
						<view class="check-box" v-if="isZeroOrder">
							<image class="nocheck" :src="paymentStatus==0?'/static/images/check.png':'/static/images/nocheck.png'" mode=""></image>
							<text class="tit">
								部分预付
							</text>
							<text class="fu">
								注：需要提供预付信息
							</text>
						</view>

						<view class="advance-payment " v-if="paymentStatus==0">
							<view class="table">
								<view :class="'table-list '+(advance==2?'active':'') " @tap="advancePayment(2)">
									<image class="circle" :src="advance==2?'/static/images/AlipayActive.png':'/static/images/Alipay.png'" mode=""></image>
									<text>混合支付</text>	
								</view>
								
								<view :class="'table-list '+(advance==1?'active':'') " @tap="advancePayment(1)">
									<image class="circle" :src="advance==1?'/static/images/bankPayActive.png':'/static/images/bankPay.png'" mode=""></image>
									<text>客户转账</text>
								</view>
								
								<view :class="'table-list '+(advance==0?'active':'') " @tap="advancePayment(0)">
									<image class="circle" :src="advance==0?'/static/images/cashActive.png':'/static/images/cash.png'" mode=""></image>
									<text>现金支付</text>
								</view>
								
							</view>
							

							<view class="up-img-box" v-if="advance!=0">
								<view  ref="imgBox" class="img-box" v-if="onAccountImage" @longtap="longTap(index)"  v-for="(item,index) in onAccountImage">
									<image class="Img" @tap="preview(onAccountImage,index)" :src="item" mode=""></image>
									<image class="delImg" @tap.stop="delImg(index)" v-if="index===imgDel" src="/static/images/xx.png" mode=""></image>
								</view>
								<view class="up-img" @tap="onAccountImg" v-if="onAccountImage.length<9">
									<image class="jia" src="/static/images/jia.png" mode=""></image>
									<view class="txt">
										上传凭证
									</view>
								</view>

							</view>
							<view class="price">
								<view class="t">预付金额：</view>
								<input  v-if="!isRejectSalesman" class="input" @input="advancePic" type="number" value="" />
								<input  v-if="isRejectSalesman" class="input" @input="advancePic" type="number" :value="rejectData.accountsPrice" />
							</view>
							<view class="price">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<input   class="input" @input="onAccountRemark" type="text" value=""  />
							</view>
							
							<view class="price" v-if="isRejectSalesman">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>

						</view>

					</view>
					
					<!-- 全款预付 -->
					<view class="list">
						<view class="check-box" @tap="payment(1)">
							<image class="nocheck" :src="paymentStatus==1?'/static/images/check.png':'/static/images/nocheck.png'" mode=""></image>
							<text class="tit">
								全款预付
							</text>
							<text class="fu">
								注：需要提供预付信息
							</text>
						</view>
					
						<view class="advance-payment " v-if="paymentStatus==1">
							<view class="table">
								<view :class="'table-list '+(advance==2?'active':'') " @tap="advancePayment(2)">
									<image class="circle" :src="advance==2?'/static/images/AlipayActive.png':'/static/images/Alipay.png'" mode=""></image>
									<text>混合支付</text>	
								</view>
								
								<view :class="'table-list '+(advance==1?'active':'') " @tap="advancePayment(1)">
									<image class="circle" :src="advance==1?'/static/images/bankPayActive.png':'/static/images/bankPay.png'" mode=""></image>
									<text>客户转账</text>
								</view>
								
								<view :class="'table-list '+(advance==0?'active':'') " @tap="advancePayment(0)">
									<image class="circle" :src="advance==0?'/static/images/cashActive.png':'/static/images/cash.png'" mode=""></image>
									<text>现金支付</text>
								</view>
								
							</view>
							
					
							<view class="up-img-box" v-if="advance!=0">
								<view  ref="imgBox" class="img-box" v-if="onAccountImage" @longtap="longTap(index)"  v-for="(item,index) in onAccountImage">
									<image class="Img" @tap="preview(onAccountImage,index)" :src="item" mode=""></image>
									<!--  -->
									 <!--  -->
									<image class="delImg" @tap.stop="delImg(index)" v-if="index===imgDel" src="/static/images/xx.png" mode=""></image>
								</view>
								<view class="up-img" @tap="onAccountImg" v-if="onAccountImage.length<9">
									<image class="jia" src="/static/images/jia.png" mode=""></image>
									<view class="txt">
										上传凭证
									</view>
								</view>
							
							</view>
							<view class="price">
								<view class="t">预付金额：</view>
								<input  v-if="!isRejectSalesman" class="input" @input="advancePic" type="number" value="" />
								<input  v-if="isRejectSalesman" class="input" @input="advancePic" type="number" :value="rejectData.accountsPrice" />
							</view>
							<view class="price">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<input class="input" @input="onAccountRemark" type="text" value="" />
							</view>
							
							<view class="price" v-if="isRejectSalesman">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>
							
					
						</view>
					
					</view>
					
				<!-- 货到付款 -->
					<view class="list">
						<view class="check-box" @tap="payment(2)" v-if="!isZeroOrder">
							<image class="nocheck" :src="paymentStatus==2?'/static/images/check.png':'/static/images/nocheck.png'" mode=""></image>
							<text class="tit">
								货到付款
							</text>
							<text class="fu">
								注：需要司机确认收货后收取货款
							</text>
						</view>
						<view class="check-box"  v-if="isZeroOrder">
							<image class="nocheck" :src="paymentStatus==2?'/static/images/check.png':'/static/images/nocheck.png'" mode=""></image>
							<text class="tit">
								货到付款
							</text>
							<text class="fu">
								注：需要司机确认收货后收取货款
							</text>
						</view>
						<view class="advance-payment " v-if="paymentStatus==2">
						
							<view class="price" v-if="isRejectSalesman">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>
						</view>
					</view>
					<!-- 赊账 -->
					<view class="list">
						<view class="check-box" @tap="payment(3)" v-if="!isZeroOrder">
							<image class="nocheck" :src="paymentStatus==3?'/static/images/check.png':'/static/images/nocheck.png'" mode=""></image>
							<text class="tit">
								赊账
							</text>
							<text class="fu">
								注：可以备注约定付款时间
							</text>
						</view>
						<view class="check-box"  v-if="isZeroOrder">
							<image class="nocheck" :src="paymentStatus==3?'/static/images/check.png':'/static/images/nocheck.png'" mode=""></image>
							<text class="tit">
								赊账
							</text>
							<text class="fu">
								注：可以备注约定付款时间
							</text>
						</view>

						<view class="advance-payment " v-if="paymentStatus==3">
						
							
							<view class="up-img-box">
								<view  ref="imgBox" class="img-box" v-if="onAccountImage" @longtap="longTap(index)"  v-for="(item,index) in onAccountImage">
									<image class="Img" @tap="preview(onAccountImage,index)" :src="item" mode=""></image>
									<!--  -->
									 <!--  -->
									<image class="delImg" @tap.stop="delImg(index)" v-if="index===imgDel" src="/static/images/xx.png" mode=""></image>
								</view>
								<view class="up-img" @tap="onAccountImg" v-if="onAccountImage.length<9">
									<image class="jia" src="/static/images/jia.png" mode=""></image>
									<view class="txt">
										上传凭证
									</view>
								</view>
							
							</view>
							
							
							<view class="price">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<input class="input" @input="onAccountRemark" type="text" value="" />
							</view>
							<view class="price" v-if="isRejectSalesman">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>

						</view>
					</view>
				</view>

			</view>




		</view>
		<!-- 经理付款方式结束 -->
		
		
		<!-- 经理提交赊账的收款凭证开始 -->
		<view class="jlfk" v-if="identity==2&&info.action==13&&info.showStatus!=6">

			<!-- 赊账开始 -->
			 <!-- v-if="info.payType==4" -->
			<view class="public">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box" v-if="info.payType==4">
							<image class="y-icon" src="/static/images/s.png" mode=""></image>
							<text class="tit">
								赊账
							</text>
						</view>
						
						<view class="check-box" v-if="info.payType==2">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								部分预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
							
						</view>
						
						<view class="check-box" v-if="info.payType==3">
							<image class="y-icon" src="/static/images/h.png" mode=""></image>
							<text class="tit">
								货到付款
							</text>
						
						</view>

						<view class="advance-payment" v-if="info.payType!=3">
							
							<view class="pictext" v-if="getPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							
							<view class="up-img-box"  v-if="getPayChannel!=0">
								<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="getPayChannel!=0&&info.payType!=4">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t1">备注：{{firstData.remark}}</view>
							</view>
						</view>

					</view>
				</view>

				<view class="title">
					<text>收款凭证</text>
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="nocheck" src="/static/images/check.png" mode=""></image>
							<text class="tit">
								货款结算
							</text>
							<text class="fu">
								注：转账需提供转账凭证，最多可上传9张
							</text>
						</view>
						<view class="remarked" v-if="isWarehouseAssignSalesman">仓管转收款权限：{{AssignRemark}}</view>
						<view class="remarked" v-if="isDriverAssignSalesman">司机转收款权限：{{AssignRemark}}</view>
						<view class="advance-payment">
						
							<view class="table">
								<view :class="'table-list '+(advance==2?'active':'') " @tap="advancePayment(2)">
									<image class="circle" :src="advance==2?'/static/images/AlipayActive.png':'/static/images/Alipay.png'" mode=""></image>
									<text>混合支付</text>	
								</view>
								
								<view :class="'table-list '+(advance==1?'active':'') " @tap="advancePayment(1)">
									<image class="circle" :src="advance==1?'/static/images/bankPayActive.png':'/static/images/bankPay.png'" mode=""></image>
									<text>客户转账</text>
								</view>
								
								<view :class="'table-list '+(advance==0?'active':'') " @tap="advancePayment(0)">
									<image class="circle" :src="advance==0?'/static/images/cashActive.png':'/static/images/cash.png'" mode=""></image>
									<text>现金支付</text>
								</view>
								
							</view>
							<view class="pictext" v-if="advance==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(info.actualPayment)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-info.actualPayment)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							<view class="up-img-box" v-if="advance!=0">
								<view  ref="imgBox" class="img-box" v-if="onAccountImage" @longtap="longTap(index)"  v-for="(item,index) in onAccountImage">
									<image class="Img" @tap="preview(onAccountImage,index)" :src="item" mode=""></image>
									<!--  -->
									 <!--  -->
									<image class="delImg" @tap.stop="delImg(index)" v-if="index===imgDel" src="/static/images/xx.png" mode=""></image>
								</view>
								<view class="up-img" @tap="onAccountImg" v-if="onAccountImage.length<9">
									<image class="jia" src="/static/images/jia.png" mode=""></image>
									<view class="txt">
										上传凭证
									</view>
								</view>
							
							</view>
							<!-- <view class="remark">
								<input class="input" @input="onAccountRemark" type="text" value="" placeholder="备注:" />
							</view> -->
							
							
							<view class="price">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<input   class="input" @input="onAccountRemark" type="text" value=""  />
							</view>
							
							<view class="price" v-if="isLastRejectSalesman">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>

						</view>
					</view>

				</view>
			</view>
			<!-- 赊账结束 -->
		</view>
		<!-- 经理提交赊账的收款凭证结束 -->

		<!-- 经理不是待处理的样式-->
		<view class="cgfk" v-if="identity==2&&info.showStatus!=-1&&info.action!=13">
			<!-- 预付款 部分-->
			<view class="public" v-if="info.payType==2">
				<view class="title">
					<text>选择付款方式</text>
					
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								部分预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
							<view class="advance-payment" v-if="isFirstData">
								
								<view class="pictext" v-if="getPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
									<view class="xj">
										<text class="xj-name">
											商品总金额
										</text>
										<text class="xj-right">
											￥{{filters.toFix(info.orderPrice)}}
										</text>
									</view>
									<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
										<text class="xj-name">
											优惠金额
										</text>
										<text class="xj-right">
											-￥{{info.activityPrice+info.couponPrice}}
										</text>
									</view>
									<view class="xj">
										<text class="xj-name">
											预付金额
										</text>
										<text class="xj-right">
											-￥{{filters.toFix(firstData.accountsPrice)}}
										</text>
									</view>
									<view class="xj">
										
										<text class="xj-ys">
											应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
										</text>
									</view>
									
									<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
								</view>
								<view class="price"  v-if="getPayChannel==0&&firstData.remark">
									<view class="t">备注：{{firstData.remark}}</view>
								</view>
								<view class="up-img-box"  v-if="getPayChannel!=0">
									<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
								</view>
								<view class="price"  v-if="getPayChannel!=0">
									<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
								</view>
								<view class="price"  v-if="getPayChannel!=0&&firstData.remark">
									<view class="t">备注：{{firstData.remark}}</view>
								</view>
							</view>
						
					</view>

				</view>
				
				<view class="title" v-if="isLastData">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
				</view>
				<view class="list-box"  v-if="isLastData" >
					<view class="list" >
						<view class="advance-payment" >
								<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
									<view class="xj">
										<text class="xj-name">
											收取现金
										</text>
										<text class="xj-right">
											￥{{filters.toFix(lastData.accountsPrice)}}
										</text>
									</view>
									<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
								</view>
								<view class="price"  v-if="jsPayChannel==0&&lastData.remark">
									<view class="t">备注：{{lastData.remark}}</view>
								</view>
							<view class="up-img-box" v-if="jsPayChannel!=0">
								<image  @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="jsPayChannel!=0">
								<view class="t">尾款：￥{{lastData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&lastData.remark">
								<view class="t">备注：{{lastData.remark}}</view>
							</view>
						</view>
				
					</view>
				</view>

			</view>
			<!-- 预付款结束 -->

			<!-- 预付款 全款-->
			<view class="public" v-if="info.payType==1">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								全款预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
						<view class="advance-payment" v-if="getPayChannel==0">
							<view class="pictext" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							<view class="price"  v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
						<view class="advance-payment" v-if="getPayChannel!=0">
							<view class="up-img-box">
								<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>

					</view>



				</view>

			</view>
			<!-- 预付款结束 -->

			<!-- 货到付款 -->
			<view class="public" v-if="info.payType==3">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/h.png" mode=""></image>
							<text class="tit">
								货到付款
							</text>

						</view>

					</view>
				</view>
				
				
				<view class="title" v-if="(info.showStatus==5||info.showStatus==4)&&isLastData">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
				</view>
				
				<view class="list-box"  v-if="(info.showStatus==5||info.showStatus==4)&&isLastData">
					<view class="list">
						
						<view class="advance-payment">
							
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(lastData.accountsPrice)}}
									</text>
								</view>
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							<view class="up-img-box" v-if="jsPayChannel!=0">
								<image @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="jsPayChannel!=0">
								<view class="t">尾款：￥{{lastData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&lastData.remark">
								<view class="t">备注：{{lastData.remark}}</view>
							</view>
						
						</view>
				
					</view>
				</view>
				

			</view>
			<!-- 货到付款结束 -->

			<!-- 赊账开始 -->
			<view class="public" v-if="info.payType==4">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/s.png" mode=""></image>
							<text class="tit">
								赊账
							</text>
						</view>

						<view class="advance-payment"  v-if="isFirstData">
							<view class="up-img-box">
								<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t1">备注：{{firstData.remark}}</view>
							</view>
						</view>

					</view>
				</view>
				
				<view class="title" v-if="info.showStatus==5&&isLastData">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
				</view>
				<view class="list-box"  v-if="info.showStatus==5&&isLastData">
					<view class="list">
						<view class="advance-payment" v-if="isLastData">
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj"  >
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(lastData.accountsPrice)}}
									</text>
								</view>
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
						
							<view class="up-img-box" v-if="jsPayChannel!=0">
								<image  @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							
							<view class="price">
								<view class="t1">备注：{{lastData.remark}}</view>
							</view>
							
						</view>
				
					</view>
				</view>

			</view>
			<!-- 赊账结束 -->

		</view>
		<!-- 经理不是待处理的样式结束 -->
		
		<!-- 仓管的收款方式 -->
		<view class="cgfk" v-if="identity==5&&info.pickupWay==1&&(info.payType==2||info.payType==3)&&info.action!=14&&info.action!=8&&info.action!=13&&info.showStatus!=-1&&info.showStatus!=6">
			<!-- 预付款 部分-->
			<view class="public" v-if="info.payType==2">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								部分预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
							
						</view>

						<view class="advance-payment" >

							<view class="up-img-box" v-if="getPayChannel!=0">
								<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price" v-if="getPayChannel!=0">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="getPayChannel!=0&&firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
								
								<view class="pictext" v-if="getPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
									<view class="xj">
										<text class="xj-name">
											商品总金额
										</text>
										<text class="xj-right">
											￥{{filters.toFix(info.orderPrice)}}
										</text>
									</view>
									<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
										<text class="xj-name">
											优惠金额
										</text>
										<text class="xj-right">
											-￥{{info.activityPrice+info.couponPrice}}
										</text>
									</view>
									<view class="xj">
										<text class="xj-name">
											预付金额
										</text>
										<text class="xj-right">
											-￥{{filters.toFix(firstData.accountsPrice)}}
										</text>
									</view>
									<view class="xj">
										
										<text class="xj-ys">
											应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
										</text>
									</view>
									
									<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
								</view>
								
								<view class="price"  v-if="getPayChannel==0&&firstData.remark">
									<view class="t">备注：{{firstData.remark}}</view>
								</view>
						</view>

					</view>

				</view>


				<view class="title">
					<text>收款凭证</text>
				</view>

				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="nocheck" src="/static/images/check.png" mode=""></image>
							<text class="tit">
								货款结算
							</text>
							<text class="fu">
								注：转账需提供转账凭证，最多可上传9张
							</text>
						</view>
						<view class="advance-payment">
							<view class="table">
								<view :class="'table-list '+(advance==2?'active':'') " @tap="advancePayment(2)">
									<image class="circle" :src="advance==2?'/static/images/AlipayActive.png':'/static/images/Alipay.png'" mode=""></image>
									<text>混合支付</text>	
								</view>
								
								<view :class="'table-list '+(advance==1?'active':'') " @tap="advancePayment(1)">
									<image class="circle" :src="advance==1?'/static/images/bankPayActive.png':'/static/images/bankPay.png'" mode=""></image>
									<text>客户转账</text>
								</view>
								
								<view :class="'table-list '+(advance==0?'active':'') " @tap="advancePayment(0)">
									<image class="circle" :src="advance==0?'/static/images/cashActive.png':'/static/images/cash.png'" mode=""></image>
									<text>现金支付</text>
								</view>
								
								<view :class="'table-list '+(advance==3?'active':'') " @tap="advancePayment(3)">
									<image class="thePayee" :src="advance==3?'/static/images/thePayee.png':'/static/images/noThePayee.png'" mode=""></image>
									<text>业务员收款</text>
								</view>
								
							</view>
							
							<view class="pictext" v-if="advance==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							<view class="up-img-box" v-if="advance!=0&&advance!=3">
								<view  ref="imgBox" class="img-box" v-if="onAccountImage" @longtap="longTap(index)"  v-for="(item,index) in onAccountImage">
									<image class="Img" @tap="preview(onAccountImage,index)" :src="item" mode=""></image>
									<!--  -->
									 <!--  -->
									<image class="delImg" @tap.stop="delImg(index)" v-if="index===imgDel" src="/static/images/xx.png" mode=""></image>
								</view>
								<view class="up-img" @tap="onAccountImg" v-if="onAccountImage.length<9">
									<image class="jia" src="/static/images/jia.png" mode=""></image>
									<view class="txt">
										上传凭证
									</view>
								</view>
							
							</view>
							<view class="price" v-if="advance!=0&&advance!=3">
								<view class="t">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额：</view>
								<input  v-if="!isRejectWarehouse" class="input" @input="advancePic" type="number" value="" />
								<input  v-if="isRejectWarehouse" class="input" @input="advancePic" type="number" :value="rejectData.accountsPrice" />
							</view>
							<view class="price" v-if="advance!=0&&advance!=3">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<input class="input" @input="onAccountRemark" type="text" value=""  />
							</view>
							
							<view class="price" v-if="advance==3">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<textarea class="bigInput"  value="" @input="onAccountRemark" placeholder="" />
								<!-- <text class="input" @input="onAccountRemark" type="text" value=""  /> -->
							</view>
							<view class="price" v-if="isRejectWarehouse">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>

						</view>
					</view>

				</view>
			</view>
			<!-- 预付款结束 -->

			<!-- 预付款 全款-->
			<view class="public" v-if="info.payType==1">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box" v-if="isFirstData">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								全款预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
						
						
						<view class="advance-payment" v-if="getPayChannel==0">
							<view class="pictext" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							<view class="price"  v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
						<view class="advance-payment" v-if="getPayChannel!=0">
							<view class="up-img-box">
								<image @tap="preview(firstData.voucher),index" class="Img" v-for="(item,index) in firstData.voucher"  :src="item?item:'/static/images/goods-img.png'" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>

					</view>
				</view>
				<view class="title">
					<text>收款凭证</text>
					
				</view>

				<view class="list-box">
					<view class="list">
						<view class="advance-payment">
							<view class="pictext" >
								全款预付，无需收款
							</view>
						</view>
					</view>

				</view>
			</view>
			<!-- 预付款结束 -->

			<!-- 货到付款 -->
			<view class="public" v-if="info.payType==3">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/h.png" mode=""></image>
							<text class="tit">
								货到付款
							</text>
							
						</view>
					</view>
				</view>


				<view class="title">
					<text>收款凭证</text>
				</view>

				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="nocheck" src="/static/images/check.png" mode=""></image>
							<text class="tit">
								货款结算
							</text>
							<text class="fu">
								注：转账需提供转账凭证，最多可上传9张
							</text>
						</view>
						<view class="advance-payment">
							<view class="table">
								<view :class="'table-list '+(advance==2?'active':'') " @tap="advancePayment(2)">
									<image class="circle" :src="advance==2?'/static/images/AlipayActive.png':'/static/images/Alipay.png'" mode=""></image>
									<text>混合支付</text>	
								</view>
								
								<view :class="'table-list '+(advance==1?'active':'') " @tap="advancePayment(1)">
									<image class="circle" :src="advance==1?'/static/images/bankPayActive.png':'/static/images/bankPay.png'" mode=""></image>
									<text>客户转账</text>
								</view>
								
								<view :class="'table-list '+(advance==0?'active':'') " @tap="advancePayment(0)">
									<image class="circle" :src="advance==0?'/static/images/cashActive.png':'/static/images/cash.png'" mode=""></image>
									<text>现金支付</text>
								</view>
								
								<view :class="'table-list '+(advance==3?'active':'') " @tap="advancePayment(3)">
									<image class="thePayee" :src="advance==3?'/static/images/thePayee.png':'/static/images/noThePayee.png'" mode=""></image>
									<text>业务员收款</text>
								</view>
							</view>

							<!-- <view class="pictext" v-if="advance==0">
								收取现金<text>￥{{info.actualPrice-info.actualPayment}}</text>
							</view> -->
							
							<view class="pictext" v-if="advance==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(info.actualPayment)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-info.actualPayment)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
						
							
							<view class="up-img-box" v-if="advance!=0&&advance!=3">
								<view  ref="imgBox" class="img-box" v-if="onAccountImage" @longtap="longTap(index)"  v-for="(item,index) in onAccountImage">
									<image class="Img" @tap="preview(onAccountImage,index)" :src="item" mode=""></image>
									<!--  -->
									 <!--  -->
									<image class="delImg" @tap.stop="delImg(index)" v-if="index===imgDel" src="/static/images/xx.png" mode=""></image>
								</view>
								<view class="up-img" @tap="onAccountImg" v-if="onAccountImage.length<9">
									<image class="jia" src="/static/images/jia.png" mode=""></image>
									<view class="txt">
										上传凭证
									</view>
								</view>
							
							</view>
							
							<view class="price" v-if="advance!=0&&advance!=3">
								<view class="t">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额：</view>
								<input  v-if="!isRejectWarehouse" class="input" @input="advancePic" type="number" value="" />
								<input  v-if="isRejectWarehouse" class="input" @input="advancePic" type="number" :value="rejectData.accountsPrice" />
							</view>
							<view class="price" v-if="advance!=0&&advance!=3">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<input class="input" @input="onAccountRemark" type="text" value=""  />
							</view>
							
							<view class="price" v-if="advance==3">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<textarea class="bigInput"  value="" @input="onAccountRemark" placeholder="" />
								<!-- <text class="input" @input="onAccountRemark" type="text" value=""  /> -->
							</view>
							
							<view class="price" v-if="isRejectWarehouse">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>

						</view>
					</view>

				</view>
			</view>
			<!-- 货到付款结束 -->

			<!-- 赊账开始 -->
			<view class="public" v-if="info.payType==4">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/s.png" mode=""></image>
							<text class="tit">
								赊账
							</text>
						</view>

						<view class="advance-payment">
							<view class="up-img-box">
								<image @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData" :src="item?item:'/static/images/goods-img.png'" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t">预付金额：￥{{firstData.remark}}</view>
							</view>
						</view>

					</view>
				</view>


				<view class="title">
					<text>收款凭证</text>
					
				</view>

				<view class="list-box">
					<view class="list">
						<view class="advance-payment">

							<view class="pictext" v-if="sztable==0">
								赊账订单，无需收款
							</view>


						</view>
					</view>

				</view>
			</view>
			<!-- 赊账结束 -->

		</view>
		<!-- 仓管的收款方式结束 -->

		<!-- 仓管非收款样式-->
		
		<view class="cgfk" v-if="identity==5&&(info.payType!=2||info.payType!=3)&&(info.pickupWay==1&&(info.showStatus!=4||info.pickupWay==0))||(info.action==5&&identity==5)||(info.action==6&&identity==5)||(info.action==8&&identity==5)||(info.action==9&&identity==5)||(info.action==10&&identity==5)||(info.action==11&&identity==5)||(info.action==12&&identity==5)||(info.action==13&&identity==5)||(info.action==14&&identity==5)">
			<!-- 预付款 部分-->
			<view class="public" v-if="info.payType==2">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								部分预付
							</text> 
							<!-- 支付渠道 0:现金 1:银行转账，2:支付宝转账 -->
							<!-- <text v-if="getPayChannel==0" class="">现金</text>
							<text v-if="getPayChannel==1" class="">银行转账</text>
							<text v-if="getPayChannel==2" class="">支付宝转账</text> -->
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
			
						<view class="advance-payment"  v-if="getPayChannel!=0">
							<view class="up-img-box">
								<image @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
			
						</view>
						
						<view class="advance-payment" v-if="getPayChannel==0">
							<view class="pictext"  style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
					</view>
				</view>
				<view class="title" v-if="(info.showStatus==5||info.showStatus==4)&&(isLastData||isWarehouseAssignSalesman)">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
					<image class="payee" v-if="jsPayChannel==3" src="/static/images/noThePayee.png" mode=""></image>
				</view>
				
				<view class="list-box"  v-if="(info.showStatus==5||info.showStatus==4)&&(isLastData||isWarehouseAssignSalesman)">
					<view class="list">
						<view class="advance-payment">
							
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(lastData.accountsPrice)}}
									</text>
								</view>
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							<view class="up-img-box" v-if="jsPayChannel!=0&&jsPayChannel!=3">
								<image @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&jsPayChannel!=3&&!isWarehouseAssignSalesman">
								<view class="t">尾款：￥{{lastData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&jsPayChannel!=3&&!isWarehouseAssignSalesman">
								<view class="t">备注：{{lastData.remark}}</view>
							</view>
							<view class="price"  v-if="isWarehouseAssignSalesman&&!isLastData">
								<view class="t">备注：{{AssignRemark}}</view>
							</view>
						</view>
				
					</view>
				</view>
			</view>
			<!-- 预付款结束 -->

			<!-- 预付款 全款-->
			<view class="public" v-if="info.payType==1">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								全款预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
			
						<view class="advance-payment" v-if="getPayChannel!=0">
							<view class="up-img-box">
								<image @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
							
						</view>
						
						
						<view class="advance-payment" v-if="getPayChannel==0">
							<view class="pictext"  style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
						
						
			
					</view>
			
			
			
				</view>
			
			</view>
			<!-- 预付款结束 -->


			<!-- 货到付款 -->
			<view class="public" v-if="info.payType==3">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/h.png" mode=""></image>
							<text class="tit">
								货到付款
							</text>
						
						</view>
					</view>
				</view>
				
				
				
				<view class="title" v-if="(info.showStatus==5||info.showStatus==4)&&(isLastData||isWarehouseAssignSalesman)">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
					<image class="payee" v-if="jsPayChannel==3" src="/static/images/noThePayee.png" mode=""></image>
				</view>
				
				<view class="list-box"  v-if="(info.showStatus==5||info.showStatus==4)&&(isLastData||isWarehouseAssignSalesman)">
					<view class="list">
						
						<view class="advance-payment">
							
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(lastData.accountsPrice)}}
									</text>
								</view>
								
								<view class="price"  v-if="lastData.remark">
									<view class="t">备注：{{lastData.remark}}</view>
								</view>
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							<view class="up-img-box" v-if="jsPayChannel!=0&&jsPayChannel!=3">
								<image @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&jsPayChannel!=3">
								<view class="t">尾款：￥{{lastData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&jsPayChannel!=3&&lastData.remark">
								<view class="t">备注：{{lastData.remark}}</view>
							</view>
							<view class="price"  v-if="isWarehouseAssignSalesman&&!isLastData">
								<view class="t">备注：{{AssignRemark}}</view>
							</view>
						</view>
				
					</view>
				</view>

			</view>
			<!-- 货到付款结束 -->


			<!-- 赊账开始 -->
			<view class="public" v-if="info.payType==4">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/s.png" mode=""></image>
							<text class="tit">
								赊账
							</text>
							
						</view>
			
						<view class="advance-payment">
							<view class="up-img-box">
								<image @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t1">备注：{{firstData.remark}}</view>
							</view>
						</view>
			
					</view>
				</view>
				
				<view class="title" v-if="info.showStatus==5&&info.action!=13">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
				</view>
				<view class="list-box"  v-if="info.showStatus==5&&info.action!=13">
					<view class="list">
						
						<view class="advance-payment" v-if="isLastData">
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(lastData.accountsPrice)}}
									</text>
								</view>
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							<view class="up-img-box" v-if="jsPayChannel!=0">
								<image @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price" >
								<view class="t1">备注：{{lastData.remark}}</view>
							</view>
						</view>
				
					</view>
				</view>
			
			</view>
			<!-- 赊账结束 -->
		</view>
		<!-- 仓管非收款样式结束 -->
		
		<!-- 司机收款方式开始 -->
		<view class="sjsk" v-if="identity==4&&(info.showStatus==4)&&info.action!=14&&info.action!=12&&info.showStatus!=6">
			<!-- 部分预付 预付部分 -->
			<view class="public" v-if="info.payType==2">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								部分预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>

						<view class="advance-payment" v-if="getPayChannel!=0">
							
							<view class="up-img-box" >
								<image class="Img" @tap="preview(firstData.voucher,index)" v-for="(item,index) in firstData.voucher"   :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
						
						<view class="advance-payment" v-if="getPayChannel==0">
							<view class="pictext"  style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							<view class="price" v-if="getPayChannel==0&&firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
					</view>
				</view>


				<view class="title">
					<text>收款凭证</text>
					
				</view>

				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="nocheck" src="/static/images/check.png" mode=""></image>
							<text class="tit">
								货款结算
							</text>
							<text class="fu">
								注：转账需提供转账凭证，最多可上传9张
							</text>
						</view>
						<view class="advance-payment">
							
							<view class="table">
								<view :class="'table-list '+(advance==2?'active':'') " @tap="advancePayment(2)">
									<image class="circle" :src="advance==2?'/static/images/AlipayActive.png':'/static/images/Alipay.png'" mode=""></image>
									<text>混合支付</text>	
								</view>
								
								<view :class="'table-list '+(advance==1?'active':'') " @tap="advancePayment(1)">
									<image class="circle" :src="advance==1?'/static/images/bankPayActive.png':'/static/images/bankPay.png'" mode=""></image>
									<text>客户转账</text>
								</view>
								
								<view :class="'table-list '+(advance==0?'active':'') " @tap="advancePayment(0)">
									<image class="circle" :src="advance==0?'/static/images/cashActive.png':'/static/images/cash.png'" mode=""></image>
									<text>现金支付</text>
								</view>
								
								<view :class="'table-list '+(advance==3?'active':'') " @tap="advancePayment(3)">
									<image class="thePayee" :src="advance==3?'/static/images/thePayee.png':'/static/images/noThePayee.png'" mode=""></image>
									<text>业务员收款</text>
								</view>
								
							</view>
							<!-- 现金显示 -->
							<view class="pictext" v-if="advance==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(info.actualPayment)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-info.actualPayment)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>


					
							<view class="up-img-box" v-if="advance!=0&&advance!=3">
								<view  ref="imgBox" class="img-box" v-if="onAccountImage" @longtap="longTap(index)"  v-for="(item,index) in onAccountImage">
									<image class="Img" @tap="preview(onAccountImage,index)" :src="item" mode=""></image>
								
									<image class="delImg" @tap.stop="delImg(index)" v-if="index===imgDel" src="/static/images/xx.png" mode=""></image>
								</view>
								<view class="up-img" @tap="onAccountImg" v-if="onAccountImage.length<9">
									<image class="jia" src="/static/images/jia.png" mode=""></image>
									<view class="txt">
										上传凭证
									</view>
								</view>
							
							</view>
							<view class="price" v-if="advance!=0&&advance!=3">
								<view class="t">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额：</view>
								<input  v-if="!isRejectDriver" class="input" @input="advancePic" type="number" value="" />
								<input  v-if="isRejectDriver" class="input" @input="advancePic" type="number" :value="rejectData.accountsPrice" />
							</view>
							<view class="price" v-if="advance!=0&&advance!=3">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<input class="input" @input="onAccountRemark" type="text" value=""  />
							</view>
							
							<view class="price" v-if="advance==3">
								
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<textarea class="bigInput"  value="" @input="onAccountRemark" placeholder="" />
								<!-- <text class="input" @input="onAccountRemark" type="text" value=""  /> -->
							</view>
							
							<view class="price" v-if="isRejectDriver">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>

						</view>
					</view>

				</view>
			</view>
			<!-- 预付款结束 -->
			
			<!-- 预付款 全款-->
			<view class="public" v-if="info.payType==1">
				<view class="title">
					选择付款方式
				</view> 
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								全款预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
							<!-- 非现金 -->
						<view class="advance-payment"  v-if="getPayChannel!=0">
							<view class="up-img-box">
								<image class="Img" @tap="preview(firstData.voucher,index)"  v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t">金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
						<!-- 现金 -->
						<view class="advance-payment" v-if="getPayChannel==0">
							<view class="pictext"  style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
		
					</view>
			
			
			
				</view>
			
			</view>
			<!-- 预付款结束 -->
			
			<!-- 货到付款 -->
			<view class="public" v-if="info.payType==3">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/h.png" mode=""></image>
							<text class="tit">
								货到付款
							</text>
						</view>
					</view>
				</view>


				<view class="title">
					<text>收款凭证</text>
					
				</view>

				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="nocheck" src="/static/images/check.png" mode=""></image>
							<text class="tit">
								货款结算
							</text>
							<text class="fu">
								注：转账需提供转账凭证，最多可上传9张
							</text>
						</view>
						<view class="advance-payment">
							
							
							<view class="table">
								<view :class="'table-list '+(advance==2?'active':'') " @tap="advancePayment(2)">
									<image class="circle" :src="advance==2?'/static/images/AlipayActive.png':'/static/images/Alipay.png'" mode=""></image>
									<text>混合支付</text>	
								</view>
								
								<view :class="'table-list '+(advance==1?'active':'') " @tap="advancePayment(1)">
									<image class="circle" :src="advance==1?'/static/images/bankPayActive.png':'/static/images/bankPay.png'" mode=""></image>
									<text>客户转账</text>
								</view>
								
								<view :class="'table-list '+(advance==0?'active':'') " @tap="advancePayment(0)">
									<image class="circle" :src="advance==0?'/static/images/cashActive.png':'/static/images/cash.png'" mode=""></image>
									<text>现金支付</text>
								</view>
								
								<view :class="'table-list '+(advance==3?'active':'') " @tap="advancePayment(3)">
									<image class="thePayee" :src="advance==3?'/static/images/thePayee.png':'/static/images/noThePayee.png'" mode=""></image>
									<text>业务员收款</text>
								</view>
								
							</view>
							<!-- 现金显示 -->
							<view class="pictext" v-if="advance==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(info.actualPayment)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-info.actualPayment)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>

							<view class="up-img-box" v-if="advance!=0&&advance!=3">
								<view  ref="imgBox" class="img-box" v-if="onAccountImage" @longtap="longTap(index)"  v-for="(item,index) in onAccountImage">
									<image class="Img" @tap="preview(onAccountImage,index)" :src="item" mode=""></image>
									<!--  -->
									 <!--  -->
									<image class="delImg" @tap.stop="delImg(index)" v-if="index===imgDel" src="/static/images/xx.png" mode=""></image>
								</view>
								<view class="up-img" @tap="onAccountImg" v-if="onAccountImage.length<9">
									<image class="jia" src="/static/images/jia.png" mode=""></image>
									<view class="txt">
										上传凭证
									</view>
								</view>

							</view>
							<view class="price" v-if="advance!=0&&advance!=3">
								<view class="t">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额：</view>
								
								<input  v-if="!isRejectDriver" class="input" @input="advancePic" type="number" value="" />
								<input  v-if="isRejectDriver" class="input" @input="advancePic" type="number" :value="rejectData.accountsPrice" />
							</view>
							
							<view class="price" v-if="advance!=0&&advance!=3">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<input class="input" @input="onAccountRemark" type="text" value=""  />
							</view>
							<!-- 业务员收款 -->
							<view class="price" v-if="advance==3">
								<view class="t">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</view>
								<textarea class="bigInput"  value="" @input="onAccountRemark" placeholder="" />
								<!-- <text class="input" @input="onAccountRemark" type="text" value=""  /> -->
							</view>
							<view class="price" v-if="isRejectDriver">
								<view class="t">审核意见：</view>
								<input   class="input"  type="text" disabled="true" :value="rejectData.remark"  />
							</view>
							
						</view>
					</view>

				</view>
			</view>
			<!-- 货到付款结束 -->

			<!-- 赊账开始 -->
			<view class="public" v-if="info.payType==4">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/s.png" mode=""></image>
							<text class="tit">
								赊账
							</text>
						</view>

						<view class="advance-payment">
							<view class="up-img-box">
								<image class="Img" @tap="preview(firstData.voucher,index)"  v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>

					</view>
				</view>


				<view class="title">
					<text>收款凭证</text>
					
				</view>

				<view class="list-box">
					<view class="list">
						<view class="advance-payment">
							<view class="pictext" v-if="sjsztable==0">
								赊账订单，无需收款
							</view>
						</view>
					</view>

				</view>
			</view>
			<!-- 赊账结束 -->
		</view>
		<!-- 司机收款方式结束 -->

		<!-- 司机非收款样式-->
		<view class="cgfk" v-if="identity==4&&(info.showStatus==2||info.showStatus==3||info.action==14||info.showStatus==5||info.action==12)">
			<!-- 预付款 部分-->
			<view class="public" v-if="info.payType==2">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								部分预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>
			
						<view class="advance-payment">
							<!-- 现金显示 -->
							<view class="pictext" v-if="getPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							<view class="price"  v-if="getPayChannel==0&&firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
							
							<view class="up-img-box" v-if="getPayChannel!=0">
								<image @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="getPayChannel!=0">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="getPayChannel!=0&&firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
			
						</view>
			
					</view>
			
			
			
				</view>
				
				<view class="title" v-if="info.showStatus==5||info.showStatus==4&&(isLastData||isDriverAssignSalesman)">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
					<image class="payee" v-if="jsPayChannel==3" src="/static/images/noThePayee.png" mode=""></image>
				</view>
				<view class="list-box"  v-if="info.showStatus==5||info.showStatus==4&&(isLastData||isDriverAssignSalesman)">
					<view class="list">
						
						<view class="advance-payment">

							
							<!-- 现金显示 -->
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								
								
							</view>
							<view class="price"  v-if="jsPayChannel==0&&lastData.remark">
								<view class="t">备注：{{lastData.remark}}</view>
							</view>
							
							<view class="up-img-box" v-if="jsPayChannel!=0&&jsPayChannel!=3">
								<image @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&jsPayChannel!=3">
								<view class="t">尾款：￥{{lastData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&jsPayChannel!=3&&lastData.remark">
								<view class="t">备注：{{lastData.remark}}</view>
							</view>
							
							<view class="price"  v-if="isDriverAssignSalesman&&!isLastData">
								<view class="t">备注：{{AssignRemark}}</view>
							</view>
						</view>
				
					</view>
				</view>
			
			
			</view>
			<!-- 预付款结束 -->

			<!-- 预付款 全款-->
			<view class="public" v-if="info.payType==1">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/y.png" mode=""></image>
							<text class="tit">
								全款预付
							</text>
							<image class="xj" v-if="getPayChannel==0" src="/static/images/cash.png" mode=""></image>
							<image class="yhk" v-if="getPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
							<image class="zfb" v-if="getPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
						</view>

						<view class="advance-payment"  v-if="getPayChannel!=0">
							<view class="up-img-box">
								<image @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{firstData.accountsPrice}}</view>
							</view>
							
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>
						
						
						<view class="advance-payment" v-if="getPayChannel==0">
							<view class="pictext"  style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										商品总金额
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.orderPrice)}}
									</text>
								</view>
								<view class="xj" v-if="(info.activityPrice+info.couponPrice)!=0">
									<text class="xj-name">
										优惠金额
									</text>
									<text class="xj-right">
										-￥{{info.activityPrice+info.couponPrice}}
									</text>
								</view>
								<view class="xj">
									<text class="xj-name">
										预付金额
									</text>
									<text class="xj-right">
										-￥{{filters.toFix(firstData.accountsPrice)}}
									</text>
								</view>
								<view class="xj">
									
									<text class="xj-ys">
										应收：￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
								
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							<view class="price" v-if="firstData.remark">
								<view class="t">备注：{{firstData.remark}}</view>
							</view>
						</view>

					</view>



				</view>

			</view>
			<!-- 预付款结束 -->


			<!-- 货到付款 -->
			<view class="public" v-if="info.payType==3">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/h.png" mode=""></image>
							<text class="tit">
								货到付款
							</text>
						</view>
					</view>
				</view>


				
				<view class="title" v-if="info.showStatus==5||info.showStatus==4&&(isLastData||isDriverAssignSalesman)">
					<text>收款凭证</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
					<image class="payee" v-if="jsPayChannel==3" src="/static/images/noThePayee.png" mode=""></image>
				</view>
				<view class="list-box"  v-if="info.showStatus==5||info.showStatus==4&&(isLastData||isDriverAssignSalesman)">
					<view class="list">
						<view class="advance-payment">
							<!-- 现金显示 -->
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(info.actualPrice-firstData.accountsPrice)}}
									</text>
								</view>
							</view>
							<view class="up-img-box" v-if="jsPayChannel!=0&&jsPayChannel!=3">
								<image @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&jsPayChannel!=3">
								<view class="t">尾款：￥{{lastData.accountsPrice}}</view>
							</view>
							<view class="price"  v-if="jsPayChannel!=0&&jsPayChannel!=3&&lastData.remark">
								<view class="t">备注：{{lastData.remark}}</view>
							</view>
							<view class="price"  v-if="isDriverAssignSalesman&&!isLastData">
								<view class="t">备注：{{AssignRemark}}</view>
							</view>
						</view>
				
					</view>
				</view>
							


			</view>
			<!-- 货到付款结束 -->


			<!-- 赊账开始 -->
			<view class="public" v-if="info.payType==4">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/s.png" mode=""></image>
							<text class="tit">
								赊账
							</text>
						</view>
			
						<view class="advance-payment">
							
							
							<view class="up-img-box">
								<image  @tap="preview(firstData.voucher,index)" class="Img" v-for="(item,index) in firstData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price">
								<view class="t1">备注：{{firstData.remark}}</view>
							</view>
						</view>
			
					</view>
				</view> 
				
				<view class="title" v-if="info.showStatus==5&&info.action!=13">
					<text >
						收款凭证
					</text>
					<image class="xj" v-if="jsPayChannel==0" src="/static/images/cash.png" mode=""></image>
					<image class="yhk" v-if="jsPayChannel==1" src="/static/images/bankPay.png" mode=""></image>
					<image class="zfb" v-if="jsPayChannel==2" src="/static/images/Alipay.png" mode=""></image>
				</view>
				<view class="list-box"  v-if="info.showStatus==5&&info.action!=13">
					<view class="list">
						
						<view class="advance-payment">
							<view class="pictext" v-if="jsPayChannel==0" style="background:url(/static/images/xjbg.png) no-repeat center;background-size: 100% 100%;">
								<view class="xj">
									<text class="xj-name">
										收取现金
									</text>
									<text class="xj-right">
										￥{{filters.toFix(lastData.accountsPrice)}}
									</text>
								</view>
								<!-- 收取现金<text>￥{{filters.toFix(info.actualPrice-info.actualPayment)}}</text> -->
							</view>
							
							
							<view class="up-img-box"  v-if="jsPayChannel!=0">
								<image  @tap="preview(lastData.voucher,index)" class="Img" v-for="(item,index) in lastData.voucher" :src="item" mode=""></image>
							</view>
							<view class="price" >
								<view class="t1">备注：{{lastData.remark}}</view>
							</view>
						</view>
				
					</view>
				</view>
			
			</view>
			<!-- 赊账结束 -->
	
		</view>
		<!-- 司机非收款样式结束 -->

		<!-- 已取消订单显示 -->
		<view class="order-over" v-if="false">


			<!-- 赊账开始 -->
			<view class="public" v-if="info.payType==4">
				<view class="title">
					选择付款方式
				</view>
				<view class="list-box">
					<view class="list">
						<view class="check-box">
							<image class="y-icon" src="/static/images/s.png" mode=""></image>
							<text class="tit">
								赊账
							</text>
						</view>

						<view class="advance-payment">
							<view class="up-img-box">
								<image  @tap="preview(info.voucher)" class="Img" :src="info.voucher?info.voucher:'/static/images/goods-img.png'" mode=""></image>
							</view>
							<view class="price">
								<view class="t">预付金额：￥{{info.actualPayment}}</view>
							</view>
						</view>

					</view>
				</view>


				<view class="title">
					<text>收款凭证</text>
					
				</view>

				<view class="list-box">
					<view class="list">
						<view class="advance-payment">
							<view class="table">
								<view class="table-list active">
									<image class="circle" src="/static/images/check.png" mode=""></image>
									收取现金
								</view>
								<view class="table-list">
									<image class="circle" src="/static/images/nocheck.png" mode=""></image>
									用户转账
								</view>
							</view>

							<view class="pictext">
								财务已审核，订单完成
							</view>


							<view class="up-img-box">
								<image @tap="preview(info.voucher)" class="Img" :src="info.voucher?info.voucher:'/static/images/goods-img.png'" mode=""></image>
							</view>
							<view class="price">
								<view class="t">尾款已到账，请查收</view>
							</view>

						</view>
					</view>

				</view>
			</view>
			<!-- 赊账结束 -->

		</view>
		<!-- 订单完成结束 -->
			
		<!-- 时间显示 -->
		<view class="public pad">
			<view class="title">
				订单信息
			</view>
			<view class="order-num">订单编号：{{info.orderSn}}
				<text class="copy" @tap="copy(info.orderSn)">
					复制
				</text>
			</view>
			<view class="logistics">
			<!-- 	<view class="orderInfo-list"  v-for="(item,index) in orderInfo" v-if="(info.showStatus==5||index!=orderInfo.length-1)&&item.actionResult!=-1">
					<view class="time-box">
						<view class="date">
							{{item.operatingTime?filter.getDate(item.operatingTime):''}}
						</view>
						<view class="date-time">
							{{item.operatingTime?filter.getDateTime(item.operatingTime):''}}
						</view>
					</view>
					<view class="yuan">
						<view class="nei"></view>
					</view>
					
					<view class="rightText">
						<view class="tit-text"></view>
					</view>
					
				</view> -->
				
				
				
				<view class="logistics-list" v-for="(item,index) in orderInfo" v-if="(info.showStatus==5||index!=orderInfo.length-1)&&item.actionResult!=-1">
				
					<text class="dian"></text>
					<text class="time">
						
						<template v-if="item.action==1">
							下单时间
						</template>
						<template v-if="item.action==2&&item.actionResult==0">
							审核通过时间
						</template>
						<template v-if="item.action==2&&item.actionResult==1">
							取消订单
						</template>
						<template v-if="item.action==3&&item.actionResult==0">
							经理审核通过时间
						</template>
						<template v-if="item.action==3&&item.actionResult==1">
							经理取消时间
						</template>
						<template v-if="item.action==4&&item.actionResult==0">
							财务审核通过时间
						</template>
						<template v-if="item.action==4&&item.actionResult==2">
							财务驳回时间
						</template>
						<template v-if="item.action==5&&item.actionResult==0">
							仓管审核时间
						</template>
						<template v-if="item.action==5&&item.actionResult==1">
							仓管取消时间
						</template>
						<template v-if="item.action==6&&item.actionResult==0">
							仓管指定司机时间
						</template>
						<template v-if="item.action==6&&item.actionResult==1">
							司机拒接时间
						</template>
						<template v-if="item.action==7">
							仓管提交收款凭证时间
						</template>
						<template v-if="item.action==8">
							仓管确认发货时间
						</template>
						<template v-if="item.action==9&&item.actionResult==0">
							司机接单时间
						</template>
						<template v-if="item.action==9&&item.actionResult==2">
							司机拒接时间
						</template>
						<template v-if="item.action==10">
							司机开始配送时间
						</template>
						<template v-if="item.action==11">
							司机提交收款凭证时间
						</template>
						<template v-if="item.action==12">
							司机确认发货时间
						</template>
						<template v-if="item.action==13">
							业务员提交收款凭证时间
						</template>
						<template v-if="item.action==14&&item.actionResult==0">
							财务审核时间
						</template>
						<template v-if="item.action==14&&item.actionResult==1">
							财务拒绝时间
						</template>
						<template v-if="item.action==14&&item.actionResult==2">
							财务驳回时间
						</template>
						<template v-if="item.action==15">
							财务退款时间
						</template>
						：{{item.operatingTime?filter.getDateAll(item.operatingTime):''}}</text>
					<view class="line"></view>
				</view>
				
			
			
			
			<!-- 	
				<view class="logistics-list" v-for="(item,index) in info.orderExecutes" v-if="(info.showStatus==5||index!=info.orderExecutes.length-1)&&item.actionResult!=-1">
					
					
					<view class="timeBox">
						<text class="setDate">
							{{item.operatingTime?filter.getDate(item.operatingTime):''}}
						</text>
						<text class="setTime">
							{{item.operatingTime?filter.getDateTime(item.operatingTime):''}}
						</text>
					</view>
				
				
					<text class="icon-dec"></text>
				
				
					<text class="time">
						
						<template v-if="item.action==1">
							下单时间
						</template>
						<template v-if="item.action==2&&item.actionResult==0">
							审核通过时间
						</template>
						<template v-if="item.action==2&&item.actionResult==1">
							取消订单
						</template>
						<template v-if="item.action==3&&item.actionResult==0">
							经理审核通过时间
						</template>
						<template v-if="item.action==3&&item.actionResult==1">
							经理取消时间
						</template>
						<template v-if="item.action==4&&item.actionResult==0">
							财务审核通过时间
						</template>
						<template v-if="item.action==4&&item.actionResult==2">
							财务驳回时间
						</template>
						<template v-if="item.action==5&&item.actionResult==0">
							仓管审核时间
						</template>
						<template v-if="item.action==5&&item.actionResult==1">
							仓管取消时间
						</template>
						<template v-if="item.action==6&&item.actionResult==0">
							仓管指定司机时间
						</template>
						<template v-if="item.action==6&&item.actionResult==1">
							司机拒接时间
						</template>
						<template v-if="item.action==7">
							仓管提交收款凭证时间
						</template>
						<template v-if="item.action==8">
							仓管确认发货时间
						</template>
						<template v-if="item.action==9&&item.actionResult==0">
							司机接单时间
						</template>
						<template v-if="item.action==9&&item.actionResult==2">
							司机拒接时间
						</template>
						<template v-if="item.action==10">
							司机开始配送时间
						</template>
						<template v-if="item.action==11">
							司机提交收款凭证时间
						</template>
						<template v-if="item.action==12">
							司机确认发货时间
						</template>
						<template v-if="item.action==13">
							业务员提交收款凭证时间
						</template>
						<template v-if="item.action==14&&item.actionResult==0">
							财务审核时间
						</template>
						<template v-if="item.action==14&&item.actionResult==1">
							财务拒绝时间
						</template>
						<template v-if="item.action==14&&item.actionResult==2">
							财务驳回时间
						</template>
						<template v-if="item.action==15">
							财务退款时间
						</template>
					</text>
					<view class="line"></view>
				</view>
				
				
				 -->
				
				

				<view class="logistics-list" v-if="info.showStatus==6&&info.cancelType==1">
					<text class="dian"></text>
					<text class="time">用户取消订单时间：{{filter.getDateTime(info.orderExecutes[info.orderExecutes.length-1].operatingTime)}}</text>
					<view class="line"></view>
				</view>
				<view class="logistics-list" v-if="info.showStatus==6&&info.cancelType==2">
					<text class="dian"></text>
					<text class="time">业务员取消订单时间：{{filter.getDateTime(info.orderExecutes[info.orderExecutes.length-1].operatingTime)}}</text>
					<view class="line"></view>
				</view>
				<view class="logistics-list" v-if="info.showStatus==6&&info.cancelType==3">
					<text class="dian"></text>
					<text class="time">总经理取消订单时间：{{filter.getDateTime(info.orderExecutes[info.orderExecutes.length-1].operatingTime)}}</text>
					<view class="line"></view>
				</view>
				<view class="logistics-list" v-if="info.showStatus==6&&info.cancelType==4">
					<text class="dian"></text>
					<text class="time">仓管取消订单时间：{{filter.getDateTime(info.orderExecutes[info.orderExecutes.length-1].operatingTime)}}</text>
					<view class="line"></view>
				</view>
				<view class="logistics-list" v-if="info.showStatus==6&&info.cancelType==5">
					<text class="dian"></text>
					<text class="time">超时取消订单时间：{{filter.getDateTime(info.orderExecutes[info.orderExecutes.length-1].operatingTime)}}</text>
					<view class="line"></view>
				</view>
				
			</view>
		</view>

		<!-- 总经理按钮 -->
		<view class="bottom" v-if="identity==3&&info.showStatus<5&&!isDetail">
 
			<view class="btnGroup">
				<view class="public-btn qx" @tap="shqx" v-if="info.showStatus<=4">
					取消订单
				</view>
				<view class="public-btn zp sh" @tap="szsh" v-if="identity==3">
					审核通过
				</view>
			</view>
		</view>
		<!-- 业务员按钮 -->
		<!-- identity==2&&info.action==13&&info.showStatus!=6 -->
		<view class="bottom" v-if="identity==2&&info.showStatus<6&&identity!=3">

			<view class="btnGroup">
				<view class="public-btn qx" @tap="qx" v-if="info.showStatus<=4">
					取消订单
				</view>
				<view class="public-btn qr" @tap="qr" v-if="info.showStatus==-1&&info.action!=13">
					确认订单
				</view>
				<!-- <view class="public-btn tjpz" @tap="jlskpz" v-if="info.payType==4&&info.action==13">
					提交收款凭证
				</view> -->
				<view class="public-btn tjpz" @tap="jlskpz" v-if="info.actionResult==-1&&info.action==13">
					提交收款凭证
				</view>
				
				<view class="shhz" v-if="(info.action==14||info.action==4)&&(info.actionResult==-1)">财务审核中...</view>

			</view>
		</view>
		<!-- 仓管开始 -->
		<view class="bottom" v-if="identity==5&&info.showStatus!=6&&identity!=3">

			<view class="btnGroup">
				<!-- 待处理  按钮 -->
				<view class="public-btn qx" @tap="cgqx" v-if="info.action==5&&info.action!=14">
					取消订单
				</view>
				<view class="public-btn sj" @tap="driver" v-if="info.pickupWay==0&&(info.action==6||info.action==5)">
					指派司机
				</view>
				<!-- 待处理  按钮 结束-->

				<!-- 待收货  只有门店自提时才有操作-->
				<!-- v-if="info.pickupWay==1" -->
				<view class="public-btn sj" @tap="cgtj" style="padding: 0upx 20upx;" v-if="(info.action==7||info.action==5)&&(info.payType==3||info.payType==2)&&info.pickupWay==1&&info.showStatus!=-1">
					提交收款凭证
				</view>

				<view class="public-btn sh" @tap="cgcheck" style="padding: 0upx 20upx;" v-if="info.showStatus==-1&&info.pickupWay==1">
					订单审核
				</view>
				<view class="public-btn sj" @tap="cgqrsh" style="padding: 0upx 20upx;" v-if="info.pickupWay==1&&info.action==8&&info.shippingStatus<2">
					确认收货
				</view>
				<view class="shhz" v-if="(info.action==14||info.action==4)&&(info.actionResult==-1)">财务审核中...</view>
				<!-- 待收货 -->

			</view>
		</view>
		<!-- 司机开始 -->
		<view class="bottom" v-if="identity==4&&info.showStatus!=6&&identity!=3">
			<view class="btnGroup">
				<!-- action
					当前操作：1:用户下单 2:业务员确认接单 3:总经理审核 4:财务审核(首款) 5:仓管确认接单 6：仓管派单 7：提交收款凭证 8：仓管确认发货 9:司机确认接单 10:司机开始配送 11:司机确认收货上传收款 12 司机发货 13:赊账类型业务员上传收款凭证 14:财务确认完成订单(尾款以及赊账) 15、财务订单退款（预付款） -->
				<view class="public-btn qx" @tap.stop="nojd" v-if="info.action==9">
					拒绝接单
				</view>

				<view class="public-btn sj" @tap.stop="jd" v-if="info.action==9">
					接单
				</view>
				<view class="public-btn sj" @tap.stop="ksps(1)" v-if="info.action==10">
					开始配送
				</view>
				<view class="public-btn sj" @tap.stop="ksps(2)" v-if="info.action==12&&info.shippingStatus!=2">
					确认送达
				</view>
				<view class="public-btn sj" @tap="sjtj" style="padding: 0upx 20upx;" v-if="info.action==11">
					提交收款凭证
				</view>
				<view class="shhz" v-if="(info.action==14||info.action==4)&&(info.actionResult==-1)">财务审核中...</view>
			</view>
		</view>
		<!-- -->
		<view class="drop" v-if="choicePay||orderDrop||isNojd">
			<view class="choice-pay" v-if="choicePay">
				<view class="tit">请选择支付方式</view>
				<view class="con">
					请选择支付方式后，再点击确认订单按钮
				</view>
				<view class="btn-qr" @tap="choicePayQr">
					确定
				</view>
			</view>

			<view class="cancel-order" v-if="orderDrop">
				<view class="tit">是否取消订单</view>
				<view class="text-box">
					<textarea class="textarea" @input="objection" value="" placeholder="请输入拒绝理由" placeholder-class="sty" />
					</view>
				
				<view class="btn-group">
					<view class="btn"  @tap="cancelOrderQx">
						取消
					</view>
					<view class="btn qr" @tap="cancelOrderQr">
						确认
					</view>
				</view>
			</view>
			
			
			<view class="cancel-order jdts" v-if="isNojd">
				<view class="tit">是否订拒绝接单</view>
				<view class="btn-group">
					<view class="btn"  @tap="jdQx">
						取消
					</view>
					<view class="btn qr" @tap="jdQr">
						确认
					</view>
				</view>
			</view>
			
		</view>
		<!-- 选择司机 -->
		<view class="driver-box" v-if="isDriver">
			<view class="select-driver">
				<view class="title">
					请选择司机
				</view>
				<scroll-view scroll-y="true" class="driver-scroll">
					<view class="driver">
						<!-- active -->
						<view :class="'list '+(index==check?'active':'') " @tap="active(index,item)" v-for="(item,index) in driverList" :key="index">
							{{item.nickName}}
						</view>
					
					</view>
				</scroll-view>
				
				
				<view class="btn-group">
					<view class="btn qx" @tap="driverQx">
						取消
					</view>
					<view class="btn qr" @tap="driverQr">
						确认
					</view>
				</view>
			</view> 
		</view>
		</view>
</template>
<script module="filters" lang="wxs" src="../../wxs/filter.wxs"></script>
<script module="filter" lang="wxs" src="../../wxs/time.wxs"></script>
<script>
	const util = require("../../utils/util.js");
	//获取应用实例
	const api = require("../../config/api.js"); 
	export default {
		data() {
			return {
				//选择付款状态 1预付款 2货到付款 3赊账
				paymentStatus:4,
				//付款状态 0现金 1银行卡 2支付宝
				advance:2,
				//预约图片
				advImg:'',
				//预付金额
				advPic:'',
				// 赊账图片
				onAccountImage:[],
				// 赊账备注
				remark:'',
				// 控制遮罩框
				choicePay:false,
				// 拒绝理由
				reasonRefusal:'',
				// 订单遮罩控制
				orderDrop:false,
				orderId:0,
				//仓管数据
				// 预付款
				cgtable:0,
				// 货到付款
				sktable:0,
				// 赊账
				sztable:0,
				// 司机数据
				sjtable:0,
				// 货到付款
				sjsktable:0,
				// 赊账
				sjsztable:0,
				//订单详情
				info:{},
				// 身份
				identity:0,
				isDriver:false,
				// 司机姓名
				driverName:'',
				// 司机列表
				driverList:[],
				// 选中的下表
				check:0,
				// 选中的司机
				sjinfo:{},
				isNojd:false,
				// 用户信息
				userInfo:{},
				// 取消人
				qxPerson:'',
				// 总经理赊账凭证
				zjlszpz:'',
				// 总经理赊账备注
				zjlszbz:'',
				// 业务员id
				userId:'',
				isOrder:0,
				isDetail:false,
				// 控制上传图片中的删除按钮
				imgDel:null,
				// 支付渠道 0:现金 1:银行转账，2:支付宝转账
				getPayChannel:2,
				// 获取备注
				getRemark:'',
				// 图片已上传数量
				imgNum:0,
				jsPayChannel:0,
				// 防止仓管重复审核订单
				isCgCheck:true,
				// 首款数据
				firstData:{},
				// 判断是否是首款数据
				isFirstData:false,
				// 尾款数据
				lastData:{},
				// 判断是否是尾款数据
				isLastData:false,
				// 驳回数据
				rejectData:{},
				// 是否是业务员被驳回
				isRejectSalesman:false,
				// 是否是业务员尾款被驳回
				isLastRejectSalesman:false,
				// 是否是仓管被驳回
				isRejectWarehouse:false,
				// 是否是司机被驳回
				isRejectDriver:false,
				// 是否是仓管指派业务员收款
				isWarehouseAssignSalesman:false,
				// 是否是司机指派业务员收款
				isDriverAssignSalesman:false,
				// 指派的备注
				AssignRemark:'',
				// 修改金钱
				changePic:true,
				// 订单信息（倒序）
				orderInfo:[],
				// 是否是0元订单
				isZeroOrder:false
			}
		},
		onLoad(json) {
			if(json&&json.istuisong){
				this.istuisong = json.istuisong;
			}
			
			// 获取身份id
			console.log('json',json);
			this.identity = uni.getStorageSync('identity')
			this.orderId = json.orderId;
			if(this.identity!=3){
				this.userInfo = uni.getStorageSync('userInfo');
				this.userId = this.userInfo.userId
			}
			if(this.identity==3){
				this.userId = json.userId?json.userId:''
				if(json.isDetail=="undefined"){
					//console.log('---------1----------')
					this.isDetail=false
				}else{
					this.isDetail=true
				}
			}
			// 获取订单详情
			if(this.identity==3){
				console.log("jinru");
				// 总经理角色换接口 
				util.request(api.businessOrderDetail+'?orderSn='+this.orderId,{}, 'GET').then(res => {
					console.log('总经理订单返回',res);
					
					if(!res.data){
						uni.showToast({
							title:'该订单已被取消',
							icon:'none',
							success() {
								// 推送消息进来的回到个人中心页
								if(this.istuisong==1){
									// 总经理和其他角色回到自己的个人中心页面
									if(this.identity==3){
										setTimeout(function(){
											uni.navigateTo({
												url:'/pages/generalManager/generalManager'
											})
											
										},1000)
									}else{
										setTimeout(function(){
											uni.navigateTo({
												url:'/pages/index/index'
											})
											
										},1000)
									}
									
								}else{
									setTimeout(function(){
										uni.navigateBack({
											delta:1
										})
									},1000)
								}
								
							}
						})
						return false
					}
					// 这里赋值
					res.data.data = [];
					res.data.data.push(res.data);
					
				
					this.orderInfo = res.data.data[0].orderExecutes;
					// arr = res.data.data[0].orderExecutes;
					// this.orderInfo = arr.reverse()
					// console.log(this.orderInfo)
					
					this.info = res.data.data[0];
						// 0元订单 只支持 全款预付
					if(this.info.actualPrice==0&&this.identity==2){
						console.log('0元订单')
						// 全款预付
						this.paymentStatus=1;
						this.isZeroOrder = true
					}
					for(let i=0;i<res.data.data[0].orderExecutes.length;i++){
						// 获取业务员首次提交被驳回数据
					
						if((i==res.data.data[0].orderExecutes.length-2)&&res.data.data[0].orderExecutes[i].action==4&&res.data.data[0].orderExecutes[i].actionResult==2){
							// console.log('--------------------------')
							// 确认驳回
							this.isRejectSalesman = true;
							// 重整凭证转成数组
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 将驳回数据返回
							this.rejectData = res.data.data[0].orderExecutes[i];
							console.log(this.rejectData)
							// 支付方式 1：全款 2:部分预付 3:到付,4=赊账
							if(res.data.data[0].payType==1){
								this.paymentStatus=1
							}
							if(res.data.data[0].payType==2){
								this.paymentStatus=0
							}
							if(res.data.data[0].payType==3){
								this.paymentStatus=2
							}
							if(res.data.data[0].payType==4){
								this.paymentStatus=3
							}
							// 支付渠道 0:现金 1:银行转账，2:支付宝转账
							this.advance = res.data.data[0].orderExecutes[i].payChannel
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取返回的图片
								this.onAccountImage = res.data.data[0].orderExecutes[i].voucher
								// 获取已上传的数量
								this.imgNum = res.data.data[0].orderExecutes[i].voucher.length
							}
							
							// console.log()
							
						}
						
						// 获取业务员尾款提交被驳回数据
						if(res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-1].action==13&&res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-2].action==14&&res.data.data[0].orderExecutes[i].actionResult==2){
							// 确认驳回
							this.isLastRejectSalesman = true;
							// 重整凭证转成数组
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 将驳回数据返回
							this.rejectData = res.data.data[0].orderExecutes[i];
							// 支付方式 1：全款 2:部分预付 3:到付,4=赊账
							if(res.data.data[0].payType==1){
								this.paymentStatus=1
							}
							if(res.data.data[0].payType==2){
								this.paymentStatus=0
							}
							if(res.data.data[0].payType==3){
								this.paymentStatus=2
							}
							if(res.data.data[0].payType==4){
								this.paymentStatus=3
							}
							// 支付渠道 0:现金 1:银行转账，2:支付宝转账
							this.advance = res.data.data[0].orderExecutes[i].payChannel
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取返回的图片
								this.onAccountImage = res.data.data[0].orderExecutes[i].voucher
								// 获取已上传的数量
								this.imgNum = res.data.data[0].orderExecutes[i].voucher.length
							}
							
						}
						
						// 获取仓管被驳回数据
						if(res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-1].action==7&&res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-2].action==14&&res.data.data[0].orderExecutes[i].actionResult==2){
							// 确认驳回
							this.isRejectWarehouse = true;
							// 重整凭证转成数组
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 将驳回数据返回
							this.rejectData = res.data.data[0].orderExecutes[i];
							// 支付方式 1：全款 2:部分预付 3:到付,4=赊账
							if(res.data.data[0].payType==1){
								this.paymentStatus=1
							}
							if(res.data.data[0].payType==2){
								this.paymentStatus=0
							}
							if(res.data.data[0].payType==3){
								this.paymentStatus=2
							}
							if(res.data.data[0].payType==4){
								this.paymentStatus=3
							}
							// 支付渠道 0:现金 1:银行转账，2:支付宝转账
							this.advance = res.data.data[0].orderExecutes[i].payChannel
							
							// 判断是否有图片
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取返回的图片
								this.onAccountImage = res.data.data[0].orderExecutes[i].voucher
								// 获取已上传的数量
								this.imgNum = res.data.data[0].orderExecutes[i].voucher.length
							}else{
								this.onAccountImage = []
							}
						}
						
						// 获取司机被驳回数据
						if(res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-1].action==11&&res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-2].action==14&&res.data.data[0].orderExecutes[i].actionResult==2){
							// 确认驳回
							this.isRejectDriver = true;
							// 重整凭证转成数组
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 将驳回数据返回
							this.rejectData = res.data.data[0].orderExecutes[i];
							// 支付方式 1：全款 2:部分预付 3:到付,4=赊账
							if(res.data.data[0].payType==1){
								this.paymentStatus=1
							}
							if(res.data.data[0].payType==2){
								this.paymentStatus=0
							}
							if(res.data.data[0].payType==3){
								this.paymentStatus=2
							}
							if(res.data.data[0].payType==4){
								this.paymentStatus=3
							}
							// 支付渠道 0:现金 1:银行转账，2:支付宝转账
							this.advance = res.data.data[0].orderExecutes[i].payChannel
							
							// 判断是否有图片
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取返回的图片
								this.onAccountImage = res.data.data[0].orderExecutes[i].voucher
								// 获取已上传的数量
								this.imgNum = res.data.data[0].orderExecutes[i].voucher.length
							}else{
								this.onAccountImage = []
							}
						}
						
						// 获取首款信息
						if(res.data.data[0].orderExecutes[i].action==2){
							// 如果有上传凭证  将上传凭证  转成数组
							if( res.data.data[0].orderExecutes[i].voucher){
								// 获取首次凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 获取首款信息
							this.firstData = res.data.data[0].orderExecutes[i];
							// 是首款数据
							this.isFirstData= true;
							
						
						}
						// 获取首次支付的支付渠道
						if(res.data.data[0].orderExecutes[i].action==4){
							this.getPayChannel = res.data.data[0].orderExecutes[i].payChannel
						}
						
						//  获取尾款信息  财务审核通过  执行结果 actionResult -1=待处理,0:通过 1:拒绝,2=驳回
						if(res.data.data[0].orderExecutes[i].action==14&&(res.data.data[0].orderExecutes[i].actionResult==0||res.data.data[0].orderExecutes[i].actionResult==-1)){
							//console.log('----------1--------------')
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							
							this.lastData = res.data.data[0].orderExecutes[i];
							
							this.isLastData = true;
							// 获取支付方式
							this.jsPayChannel = res.data.data[0].orderExecutes[i].payChannel;
							
						}
						
						
						// 指派业务员提交金额
						if(res.data.data[0].orderExecutes[i].payChannel==3){
							if(res.data.data[0].orderExecutes[i].action==11){
								//console.log('司机提交给业务员的')
								// 是否是司机指派业务员收款
								this.isDriverAssignSalesman=true;
								
							}
							if(res.data.data[0].orderExecutes[i].action==7){
								//console.log('仓管提交给业务员的')
								// 是否是仓管指派业务员收款
								this.isWarehouseAssignSalesman = true;
							}
							
							//console.log(res.data.data[0].orderExecutes[i])
							// 收款方式
							this.jsPayChannel = res.data.data[0].orderExecutes[i].payChannel;
							// 指派的备注
							this.AssignRemark = res.data.data[0].orderExecutes[i].remark;
							
						}
					
					}
					
					
					console.log(this.paymentStatus)
					
				})
				
			}else{
				util.request(api.businessOrderList, {
					orderSn:this.orderId,
					userId:this.userId,
					status:0
				}, 'POST').then(res => {
					console.log(res);
					if(res.data.data.length==0){
						uni.showToast({
							title:'该订单已被取消',
							icon:'none',
							success() {
								// 推送消息进来的回到个人中心页
								if(this.istuisong==1){
									// 总经理和其他角色回到自己的个人中心页面
									if(this.identity==3){
										setTimeout(function(){
											uni.navigateTo({
												url:'/pages/generalManager/generalManager'
											})
											
										},1000)
									}else{
										setTimeout(function(){
											uni.navigateTo({
												url:'/pages/index/index'
											})
											
										},1000)
									}
									
								}else{
									setTimeout(function(){
										uni.navigateBack({
											delta:1
										})
									},1000)
								}
								
							}
						})
						return false
					}
					// var arr = new Array();
					this.orderInfo = res.data.data[0].orderExecutes;
					// arr = res.data.data[0].orderExecutes;
					// this.orderInfo = arr.reverse()
					// console.log(this.orderInfo)
					
					this.info = res.data.data[0];
						// 0元订单 只支持 全款预付
					if(this.info.actualPrice==0&&this.identity==2){
						console.log('0元订单')
						// 全款预付
						this.paymentStatus=1;
						this.isZeroOrder = true
					}
					for(let i=0;i<res.data.data[0].orderExecutes.length;i++){
						// 获取业务员首次提交被驳回数据
					
						if((i==res.data.data[0].orderExecutes.length-2)&&res.data.data[0].orderExecutes[i].action==4&&res.data.data[0].orderExecutes[i].actionResult==2){
							// console.log('--------------------------')
							// 确认驳回
							this.isRejectSalesman = true;
							// 重整凭证转成数组
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 将驳回数据返回
							this.rejectData = res.data.data[0].orderExecutes[i];
							console.log(this.rejectData)
							// 支付方式 1：全款 2:部分预付 3:到付,4=赊账
							if(res.data.data[0].payType==1){
								this.paymentStatus=1
							}
							if(res.data.data[0].payType==2){
								this.paymentStatus=0
							}
							if(res.data.data[0].payType==3){
								this.paymentStatus=2
							}
							if(res.data.data[0].payType==4){
								this.paymentStatus=3
							}
							// 支付渠道 0:现金 1:银行转账，2:支付宝转账
							this.advance = res.data.data[0].orderExecutes[i].payChannel
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取返回的图片
								this.onAccountImage = res.data.data[0].orderExecutes[i].voucher
								// 获取已上传的数量
								this.imgNum = res.data.data[0].orderExecutes[i].voucher.length
							}
							
							// console.log()
							
						}
						
						// 获取业务员尾款提交被驳回数据
						if(res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-1].action==13&&res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-2].action==14&&res.data.data[0].orderExecutes[i].actionResult==2){
							// 确认驳回
							this.isLastRejectSalesman = true;
							// 重整凭证转成数组
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 将驳回数据返回
							this.rejectData = res.data.data[0].orderExecutes[i];
							// 支付方式 1：全款 2:部分预付 3:到付,4=赊账
							if(res.data.data[0].payType==1){
								this.paymentStatus=1
							}
							if(res.data.data[0].payType==2){
								this.paymentStatus=0
							}
							if(res.data.data[0].payType==3){
								this.paymentStatus=2
							}
							if(res.data.data[0].payType==4){
								this.paymentStatus=3
							}
							// 支付渠道 0:现金 1:银行转账，2:支付宝转账
							this.advance = res.data.data[0].orderExecutes[i].payChannel
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取返回的图片
								this.onAccountImage = res.data.data[0].orderExecutes[i].voucher
								// 获取已上传的数量
								this.imgNum = res.data.data[0].orderExecutes[i].voucher.length
							}
							
						}
						
						// 获取仓管被驳回数据
						if(res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-1].action==7&&res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-2].action==14&&res.data.data[0].orderExecutes[i].actionResult==2){
							// 确认驳回
							this.isRejectWarehouse = true;
							// 重整凭证转成数组
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 将驳回数据返回
							this.rejectData = res.data.data[0].orderExecutes[i];
							// 支付方式 1：全款 2:部分预付 3:到付,4=赊账
							if(res.data.data[0].payType==1){
								this.paymentStatus=1
							}
							if(res.data.data[0].payType==2){
								this.paymentStatus=0
							}
							if(res.data.data[0].payType==3){
								this.paymentStatus=2
							}
							if(res.data.data[0].payType==4){
								this.paymentStatus=3
							}
							// 支付渠道 0:现金 1:银行转账，2:支付宝转账
							this.advance = res.data.data[0].orderExecutes[i].payChannel
							
							// 判断是否有图片
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取返回的图片
								this.onAccountImage = res.data.data[0].orderExecutes[i].voucher
								// 获取已上传的数量
								this.imgNum = res.data.data[0].orderExecutes[i].voucher.length
							}else{
								this.onAccountImage = []
							}
						}
						
						// 获取司机被驳回数据
						if(res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-1].action==11&&res.data.data[0].orderExecutes[res.data.data[0].orderExecutes.length-2].action==14&&res.data.data[0].orderExecutes[i].actionResult==2){
							// 确认驳回
							this.isRejectDriver = true;
							// 重整凭证转成数组
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 将驳回数据返回
							this.rejectData = res.data.data[0].orderExecutes[i];
							// 支付方式 1：全款 2:部分预付 3:到付,4=赊账
							if(res.data.data[0].payType==1){
								this.paymentStatus=1
							}
							if(res.data.data[0].payType==2){
								this.paymentStatus=0
							}
							if(res.data.data[0].payType==3){
								this.paymentStatus=2
							}
							if(res.data.data[0].payType==4){
								this.paymentStatus=3
							}
							// 支付渠道 0:现金 1:银行转账，2:支付宝转账
							this.advance = res.data.data[0].orderExecutes[i].payChannel
							
							// 判断是否有图片
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取返回的图片
								this.onAccountImage = res.data.data[0].orderExecutes[i].voucher
								// 获取已上传的数量
								this.imgNum = res.data.data[0].orderExecutes[i].voucher.length
							}else{
								this.onAccountImage = []
							}
						}
						
						// 获取首款信息
						if(res.data.data[0].orderExecutes[i].action==2){
							// 如果有上传凭证  将上传凭证  转成数组
							if( res.data.data[0].orderExecutes[i].voucher){
								// 获取首次凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							// 获取首款信息
							this.firstData = res.data.data[0].orderExecutes[i];
							// 是首款数据
							this.isFirstData= true;
							
						
						}
						// 获取首次支付的支付渠道
						if(res.data.data[0].orderExecutes[i].action==4){
							this.getPayChannel = res.data.data[0].orderExecutes[i].payChannel
						}
						
						//  获取尾款信息  财务审核通过  执行结果 actionResult -1=待处理,0:通过 1:拒绝,2=驳回
						if(res.data.data[0].orderExecutes[i].action==14&&(res.data.data[0].orderExecutes[i].actionResult==0||res.data.data[0].orderExecutes[i].actionResult==-1)){
							//console.log('----------1--------------')
							if(res.data.data[0].orderExecutes[i].voucher){
								// 获取尾款凭证
								res.data.data[0].orderExecutes[i].voucher = res.data.data[0].orderExecutes[i].voucher.split(",");
							}
							
							this.lastData = res.data.data[0].orderExecutes[i];
							
							this.isLastData = true;
							// 获取支付方式
							this.jsPayChannel = res.data.data[0].orderExecutes[i].payChannel;
							
						}
						
						
						// 指派业务员提交金额
						if(res.data.data[0].orderExecutes[i].payChannel==3){
							if(res.data.data[0].orderExecutes[i].action==11){
								//console.log('司机提交给业务员的')
								// 是否是司机指派业务员收款
								this.isDriverAssignSalesman=true;
								
							}
							if(res.data.data[0].orderExecutes[i].action==7){
								//console.log('仓管提交给业务员的')
								// 是否是仓管指派业务员收款
								this.isWarehouseAssignSalesman = true;
							}
							
							//console.log(res.data.data[0].orderExecutes[i])
							// 收款方式
							this.jsPayChannel = res.data.data[0].orderExecutes[i].payChannel;
							// 指派的备注
							this.AssignRemark = res.data.data[0].orderExecutes[i].remark;
							
						}
					
					}
					
					
					console.log(this.paymentStatus)
					
				})
				
				
			}
			
			
		},
		methods: {
			// 返回
			black(){
				// 如果是从消息列表跳到详情并且是总经理角色 跳转到总经理首页
				if(this.istuisong==1&&this.identity==3){
					uni.redirectTo({
						url:'/pages/generalManager/generalManager'
					})
				}else{
					uni.navigateBack({
						delta:1
					})
				}
			},
			//选择预付款状态
			advancePayment(index){
				
				if(this.advance != index){
					this.advance = index;
				}
			},
			//业务员点击确认订单
			qr(){
				let creditVoucher = ''
				let voucher = ''
				// 如果是驳回填写默认金钱
				if(this.isRejectSalesman&&this.changePic){
					this.advPic = this.rejectData.accountsPrice
				}
				
				// 赊账备注限制
				if(this.remark.length>50){
					uni.showToast({
						title:'文字不得超过50个',
						icon:'none'
					})
					return false
				}
				// 没有选择付款状态
				if(this.paymentStatus==4){
					this.choicePay = true
					return false
				}
				//没有上传预付款的凭证
				if(this.onAccountImage.length==0&&this.advance!=0){
					if(this.paymentStatus!=2){
						uni.showToast({
							title:'请上传预付款的凭证',
							icon:'none'
						})
						return false
					}
						
				}
				
				
				//没有填写预付款的金额
				if(!this.advPic){
					if(this.paymentStatus==1||this.paymentStatus==0){
						uni.showToast({
							title:'请填写预付款的金额',
							icon:'none'
						})
						return false
					}
					
				}
				//没有上传赊账的凭证
				if(this.paymentStatus==3&&this.onAccountImage.length==0){
					uni.showToast({
						title:'请上传赊账的凭证',
						icon:'none'
					})
					return false
				}
				//没有填写赊账的备注
				if(this.paymentStatus==3&&!this.remark){
					uni.showToast({
						title:'请填写赊账备注',
						icon:'none'
					})
					return false
				}
			
				// advance:0,
				let payType;
				if(this.paymentStatus==0){
					// 部分预付
					payType = 2
					if(this.advPic>=this.info.actualPrice&&this.info.actualPrice!=0){
						uni.showToast({
							title:'金额输入有误',
							icon:'none'
						})
						return false
					}
					
					if(this.advPic<=0){
						uni.showToast({
							title:'金额输入有误',
							icon:'none'
						})
						return false
					}
					
				
					
					// 付款凭证
					voucher = this.onAccountImage.length!=0?this.onAccountImage.join():'';
					
					
				}
				if(this.paymentStatus==1){
					// 全款预付
					payType =1
					if(this.advPic!=this.info.actualPrice){
						uni.showToast({
							title:'金额输入有误',
							icon:'none'
						})
						return false
					}
					
					if(this.advPic<0){
						uni.showToast({
							title:'金额输入有误',
							icon:'none'
						})
						return false
					}
					
					// if(!this.remark){
					// 	uni.showToast({
					// 		title:'请填写备注',
					// 		icon:'none'
					// 	})
					// 	return false
					// }
					
					// 付款凭证
					 voucher = this.onAccountImage.length!=0?this.onAccountImage.join():'';
				}
				
				if(this.paymentStatus==2){
					// 到付
					payType = 3
					
					this.advance = 0
				}
				
				if(this.paymentStatus==3){
					// 赊账
					payType = 4
					
					this.advance = 1;
					// 赊账凭证
					creditVoucher = this.onAccountImage.length!=0?this.onAccountImage.join():'';
				}
				
				
				// if(payType==2){
				// 	this.advPic==info.actualPrice
				// }
				// //console.log(this.advance)
				
				// //payType 付款状态 1全款预付 2部分预付 3货到付款 4赊账	
				var json = {
					//确认订单
					action:1,
					// 金额（收款金额）会校验
					amount:this.advPic,
					//订单号
					orderSn:this.orderId,
					// 确认付款类型1=全款预付,2=预付部分 ,3=到付，4=赊账
					payType:payType,
					// 备注
					creditReamrk:this.remark,
					// 赊账凭证
					creditVoucher:creditVoucher,
					//预付款凭证
					voucher:voucher,
					// 备注
					remark:this.remark,
					// //付款方式 0现金支付  1银行卡转账  2支付宝转账
					payChannel:this.advance
				}
				console.log(json)
				
				// return false
				// 确认订单
				util.request(api.orderSure,{
					//确认订单
					action:1,
					// 金额（收款金额）会校验
					amount:this.advPic,
					//订单号
					orderSn:this.orderId,
					// 确认付款类型1=全款预付,2=预付部分 ,3=到付，4=赊账
					payType:payType,
					// 赊账备注
					creditReamrk:this.remark,
					// 赊账凭证
					creditVoucher:creditVoucher,
					// 备注
					remark:this.remark,
					//预付款凭证
					voucher:this.advance!=0?voucher:'',
					// 支付渠道
					 // 0现金支付  1银行卡转账  2支付宝转账
					payChannel:this.advance
				},'POST').then(res => {
					
					if(res.error==0){
						uni.showToast({
							title:'确认成功',
							success(){
								setTimeout(function(){
									uni.navigateBack()
								},500)
							}
						})
					}else{
						uni.showToast({
							title:res.errmsg,
							icon:'none'
						})
					}
					//console.log(res)
				})
				
			},
			// 预付金额
			advancePic(e){
				//console.log(e.detail.value)
				this.advPic = e.detail.value;
				this.changePic = false
			},
			// 图片上传
			onAccountImg(){
				var n=9;
				var c = n-this.imgNum;
				//console.log(c)
				uni.chooseImage({
				    count: c, //默认9
					sizeType:'compressed',
				    success:(res)=>{
						//console.log(res)
						if(this.onAccountImage.length+res.tempFilePaths.length>9){
							uni.showToast({
								title:'图片数量过多',
								icon:'none'
							})
							return false;
						}
						let ImgString = res.tempFilePaths.join();
						//console.log(ImgString)
						uni.showLoading({
						  title: '上传中',
						})
						
						//console.log(this.imgNum)
						for(let i = 0;i<res.tempFilePaths.length;i++){
							uni.uploadFile({
								url: api.ImageUploads,
								filePath:res.tempFilePaths[i],
								name: "file",
								success:(res)=>{
									//console.log(res)
									this.onAccountImage.push(JSON.parse(res.data).data[0])
									//console.log(this.onAccountImage)
									this.imgNum = this.onAccountImage.length;
									 uni.hideLoading();
								}
							  })
						}	
					}
				});
			},
			// 赊账备注
			onAccountRemark(e){
				//console.log(e.detail.value)
				this.remark = e.detail.value;
				if(this.advance!=3){
					if(e.detail.value.length>50){
						return uni.showToast({
							title:'文字不得超过50个',
							icon:'none'
						})
					}
				}else{
					if(e.detail.value.length>250){
						return uni.showToast({
							title:'文字不得超过250个',
							icon:'none'
						})
					}
				}
			},
			//选择付款状态
			payment(index){
				if(index==1||index==0){
					this.onAccountImage =[];
					this.imgNum = 0;
					this.remark = '';
					this.advance = 2;
					this.advPic = 0
				}
				if(index!=3){
					this.onAccountImage =[];
					this.imgNum = 0;
					this.remark = '';
					this.advance = 2;
					this.advPic = 0
				}
				this.paymentStatus = index
				
				//console.log(this.advance)
			},
		
			
			// 删除图片
			delImg(index){
				// 删除数组元素
				 this.onAccountImage.splice(index, 1);
				 this.imgNum--;
				 //console.log(this.imgNum)
				 this.imgDel = null
			},
			// 长按显示删除按钮
			longTap(index){
				this.imgDel = index
			},
			// 图片预览
			preview(url,is){
				//console.log(url)
				let arr = [];
			
				arr = url
				
				//console.log(arr)
				        // 预览图片
				        uni.previewImage({
							current: is ,
				            urls: arr,
				            longPressActions: {
				                itemList: ['发送给朋友', '保存图片', '收藏'],
				                success: function(data) {
				                    //console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
				                },
				                fail: function(err) {
				                    //console.log(err.errMsg);
				                }
				            }
				        });
				 
			},
			// 
			// 仓管审核通过
			cgcheck(){
				if(!this.isCgCheck){
					uni.showToast({
						title:'请勿重复审核',
						icon:'none'
					})
					return false
				}
				this.isCgCheck = false;
				
				util.request(api.cgOrderSend, {
					action:4,
					orderSn:this.orderId,
				}, 'POST').then(res => {
					//console.log(res)
					if(res.errno==0){
						uni.showToast({
							title:'审核成功',
							success() {
								setTimeout(function(){
									uni.navigateBack()	
								},500)
								
							}
						})
					}else{
						uni.showToast({
							title:res.msg,
							icon:'none',
							success() {
								setTimeout(function(){
									uni.navigateBack()	
								},500)
								
							}
						})
						this.isCgCheck = true;
					}
						
					
				})
			},
			// 总经理赊账审核取消
			shqx(){
				var that= this;
				util.request(api.creditorderVerify, {
					orderSn:this.orderId,
					// 备注
					remark:'',
					result:0
				}, 'POST').then(res => {
					//console.log(res)
					if(res.error==0){
						uni.showToast({
							title:'取消成功',
							success() {
								setTimeout(function(){
								// 如果是从消息列表跳到详情并且是总经理角色 跳转到总经理首页
									if(that.istuisong==1&&that.identity==3){
										uni.redirectTo({
											url:'/pages/generalManager/generalManager'
										})
									}else{
										uni.navigateBack({
											delta:1
										})
									}
								},500)
							}
						})
					}
				})
			},
			// 总经理赊账审核
			szsh(){
				//console.log(123456789)
				var that= this;
				util.request(api.creditorderVerify, {
					orderSn:this.orderId,
					// 备注
					remark:'',
					result:1
				}, 'POST').then(res => {
					//console.log(res)
					if(res.error==0){
						uni.showToast({
							title:'审核成功',
							success() {
								setTimeout(function(){
								// 如果是从消息列表跳到详情并且是总经理角色 跳转到总经理首页
									if(that.identity==3){
										
										uni.redirectTo({
											url:'/pages/generalManager/generalManager'
										})
									}else{
										uni.navigateBack({
											delta:1
										})
									}
								},500)
								
							}
						})
					}
				})
			},
			// 司机
			sjtap(index){
				this.sjtable = index
			},
			sjsktap(index){
				//console.log(index)
				this.sjsktable = index
			},
			sjsztap(index){
				this.sjsztable = index
			},
			// 司机提交
			sjtj(){
				//console.log('-----1-----')
				// 如果是驳回填写默认金钱
				if(this.isRejectDriver&&this.changePic){
					this.advPic = this.rejectData.accountsPrice
				}
				let payMethod;
				var Payment;
				Payment= this.info.actualPrice-this.info.actualPayment
				Payment = Payment.toFixed(2);
				//console.log(Payment)
				this.advPic = this.advPic*1
				if(this.advance==3){
					payMethod = 4
				}
				if(this.advance==2){
					payMethod = 3;
				}
				if(this.advance==1){
					payMethod = 2
				}
				if(this.advance==0){
					payMethod = 1
				}
				
				// info.actualPrice-info.actualPayment
				if(payMethod==3||payMethod==2){
					if(this.onAccountImage.length==0){
						uni.showToast({
							title:'请上传凭证',
							icon:'none'
						})
						return false;
					}
					
					if(!this.advPic&&this.advance!=3&&this.advance!=0){
						uni.showToast({
							title:'请填写金额',
							icon:'none'
						})
						
						return false;
					}
					
					
					//console.log(Payment)
					//console.log(this.advPic)
					if(Payment!=this.advPic&&this.advance!=3){
						//console.log('-----3-----')
						uni.showToast({
							title:'请确认金额是否正确',
							icon:'none'
						})
						
						return false;
					}
					
				}
				
				if(this.advance==3&&!this.remark){
					uni.showToast({
						title:'请填写备注',
						icon:'none'
					})
					
					return false; 
				}
				
				//console.log(payMethod)
				//console.log(Payment)
				var json = {
					orderSn:this.orderId,
					action:3,
					// 现金钱数
					amount:payMethod!=1?this.advPic:Payment,
					// //付款方式 1现金支付  2银行卡转账  3支付宝转账 4业务员提交
					payMethod:payMethod,
					// 转账凭证
					voucher:this.advance!=0?this.onAccountImage.join():'',
					remark:this.remark
				}
				//console.log(json)
				// return false;
				
				util.request(api.orderDispatch, {
					orderSn:this.orderId,
					action:3,
					// 现金钱数
					amount:payMethod!=1?this.advPic:Payment,
					// //付款方式 1现金支付  2银行卡转账  3支付宝转账 4业务员提交
					payMethod:payMethod,
					// 转账凭证
					voucher:payMethod!=1?this.onAccountImage.join():'',
					remark:this.remark
				}, 'POST').then(res => {
					//console.log(res)
					if(res.error==0){
						uni.showToast({
							title:'提交成功',
							success() {
								setTimeout(function(){
									uni.navigateBack()
								},500)
								
							}
						})
					}else{
						uni.showToast({
							title:res.errmsg,
							icon:'none'
						})
					}
				})
			},
			// 司机开始配送
			ksps(action){
					util.request(api.orderDispatch, {
						orderSn:this.orderId,
						action:action
					}, 'POST').then(res => {
						//console.log(res)
						if(res.error==0){
							if(action==1){
								uni.showToast({
									title:'开始配送',
									success() {
										setTimeout(function(){
											uni.navigateBack()
										},500)
									}
								})
							}
							
							if(action==2){
								uni.showToast({
									title:'确认送达',
									success() {
										setTimeout(function(){
											uni.navigateBack()
										},500)
									}
								})
							}
							
						}
					})
			},
			// 接单
			jd(){
				util.request(api.orderTaking, {
					orderSn:this.orderId,
					taking:1
				}, 'POST').then(res => {
					//console.log(res)
					if(res.error==0){
						uni.showToast({
							title:'接单成功',
							success() {
								setTimeout(function(){
									uni.navigateBack()
								},500)
							}
						})
					}
				})
				
			},
			// 拒绝接单
			nojd(){
				
			 this.isNojd = true
			},
			// 拒绝接单取消
			jdQx(){
				this.isNojd = false
			},
			// 拒绝接单确认
			jdQr(){
				util.request(api.orderTaking, {
					orderSn:this.orderId,
					taking:0
				}, 'POST').then(res => {
					//console.log(res)
					if(res.error==0){
					
						uni.showToast({
							title:'拒绝接单成功',
							success() {
								setTimeout(function(){
									uni.navigateBack()
								},500)
								
							}
						})
						
						this.isNojd = false
					}
				})
			},
			// 仓管取消
			cgqx(){
				this.orderDrop = true
				
			},
			// 仓管确认收货
			cgqrsh(){
				util.request(api.cgOrderSend, {
					action:2,
					orderSn:this.orderId,
				}, 'POST').then(res => {
						uni.showToast({
							title:'成功',
							success() {
								setTimeout(function(){
									uni.navigateBack()
								},500)
							}
						})
					//console.log(res)
					
				})
			},
			// 仓管提交收款凭证
			cgtj(){
				
				//console.log('-----1-----')
				// 如果是驳回填写默认金钱
				if(this.isRejectDriver&&this.changePic){
					this.advPic = this.rejectData.accountsPrice
				}
				let payMethod;
				var Payment;
				Payment= this.info.actualPrice-this.info.actualPayment
				Payment = Payment.toFixed(2);
				//console.log(Payment)
				this.advPic = this.advPic*1
				// //付款方式 0现金支付  1银行卡转账  2支付宝转账
				// advance:0,
				if( this.advance==0){
					payMethod = 1
				}
				
				if( this.advance==1){
					payMethod = 2
				}
				if( this.advance==2){
					payMethod = 3
				}
				if( this.advance==3){
					payMethod = 4
				}
				
				if((this.advance==1||this.advance==2)&&this.onAccountImage.length==0){
					uni.showToast({
						title:'请上传凭证',
						icon:'none'
					})
					return false;
				}
				
				if(!this.advPic&&this.advance!=3&&this.advance!=0){
						uni.showToast({
							title:'请填写金额',
							icon:'none'
						})
						
						return false;
					}
					
					
					//console.log(Payment)
					//console.log(this.advPic)
					if(Payment!=this.advPic&&this.advance!=3&&this.advance!=0){
						//console.log('-----3-----')
						uni.showToast({
							title:'请确认金额是否正确',
							icon:'none'
						})
						
						return false;
					}
				
				
				//console.log(this.advance)
				if(this.advance==3&&!this.remark){
					uni.showToast({
						title:'请填写备注',
						icon:'none'
					})
					
					return false; 
				}
				 var json = {
					amount:payMethod!=1?this.advPic:Payment,
					action:3,
					payMethod:payMethod,
					orderSn:this.orderId,
					remark:this.remark,
					voucher:this.onAccountImage
				}
				 
				 console.log(json)
				 // return false;
				util.request(api.cgOrderSend, {
					amount:payMethod!=1?this.advPic:Payment,
					action:3,
					// 余款付款方式：1=现金,2=转账,3=支付宝转账 4业务员收款
					payMethod:payMethod,
					// 订单号
					orderSn:this.orderId,
					// 备注
					remark:this.remark,
					// 转账凭证（支持多个,逗号分隔）
					voucher:payMethod!=1?this.onAccountImage.join():''
				}, 'POST').then(res => {
						//console.log(res)
					if(res.error==0){
						uni.showToast({
							title:'提交成功',
							success() {
								setTimeout(function(){
									uni.navigateBack()
								},500)
								
							}
						})
						
					}
					
					
				})
			},
			// 拨打电话
			call(phoneNumber){
				uni.makePhoneCall({
				    phoneNumber: phoneNumber //仅为示例
				});
			},
			// 选择付款方式
			active(index,item){
				//console.log(index)
				this.check = index;
				this.driverName = item
			},
			// 指派司机
			driver(){
				this.isDriver = true;
				
				// 获取司机列表
				util.request(api.wareHouseDrivers+'?warehouseId='+this.info.portalWarehouseInfoVo.id, {
				}, 'POST').then(res => {
					//console.log(res)
					if(res.error==0){
						this.driverList = res.data
					}
					
					
				})
				
			},
			// 取消司机
			driverQx(){
				this.isDriver = false;
			},
			// 确定司机
			driverQr(e){
				this.isDriver = false;
				this.sjinfo = this.driverList[this.check];
				//console.log(this.sjinfo)
				// 指定司机发货
				util.request(api.cgOrderSend, {
					action:1,
					driverId:this.sjinfo.userId,
					orderSn:this.orderId
				}, 'POST').then(res => {
						
					if(res.error==0){
						uni.showToast({
							title:'指派成功',
							success() {
								setTimeout(function(){
									uni.navigateBack()
								},500)
								
							}
						})
						
					}
					//console.log(res)
					
				})
				
			},
			// 取消选择付款状态的遮罩
			choicePayQr(){
				this.choicePay = false
			},
			//点击取消订单
			qx(){
				this.orderDrop = true
			},
			// 拒绝理由
			objection(e){
				this.reasonRefusal = e.detail.value;
			},
			// 取消订单确认
			cancelOrderQr(){
				// 没有填写拒绝理由
				if(!this.reasonRefusal){
					uni.showToast({
						title:'请填写拒绝理由',
						icon:'none'
					})
					
					return false
				}
				
				var json = {
					//取消订单
					action:0,
					cancelReason:this.reasonRefusal,
					orderSn:this.orderId
				}
				//console.log(json)
				// 取消订单
				util.request(api.orderSure, {
					//取消订单
					action:0,
					cancelReason:this.reasonRefusal,
					orderSn:this.orderId
				}, 'POST').then(res => {
					
					uni.showToast({
						title:'取消成功'
					})
					setTimeout(function(){
						uni.navigateBack()
					},500)
					//console.log(res)
				})
				
				
				this.orderDrop = false
			},
			// 取消订单  取消
			cancelOrderQx(){
				this.orderDrop = false
			},
			// 仓管
			cgtap(index){
				this.cgtable = index
			},
			sktap(index){
				this.sktable = index
			},
			sztap(index){
				this.sztable = index
			},

			copy(order){
				uni.setClipboardData({
				    data: order,
				    success: function () {
				        // //console.log('success');
						uni.showToast({
							title:'复制成功'
						})
				    }
				});
			},
			// 业务员提交收款凭证
			jlskpz(){
	
				
				if(this.advance!=0&&this.onAccountImage.length==0){
					uni.showToast({
						title:'请上传凭证',
						icon:'none'
					})
					return false;
				}
				
				if(!this.remark){
					uni.showToast({
						title:'请填写备注',
						icon:'none'
					})
					return false;
				}
				//console.log(this.remark)
				var json = {
					//确认订单
					action:2,
					// 金额（收款金额）会校验
					// info.actualPrice-info.actualPayment
					amount:parseFloat(this.info.actualPrice-this.info.actualPayment),
					//订单号
					orderSn:this.orderId,
					// 确认付款类型1=预付部分,2=全款预付,3=到付，4=赊账
					// 赊账备注
					creditReamrk:this.remark,
					remark:this.remark,
					payChannel:this.advance,
					voucher:this.advance!=0?this.onAccountImage.join():''
				}
				console.log(json)
				// return false
				// 确认订单
				util.request(api.orderSure, {
					//确认订单
					action:2,
					// 金额（收款金额）会校验
					amount:parseFloat(this.info.actualPrice-this.info.actualPayment),
					//订单号
					orderSn:this.orderId,
					// 确认付款类型1=预付部分,2=全款预付,3=到付，4=赊账
					// 赊账备注
					creditReamrk:this.remark,
					remark:this.remark,
					payChannel:this.advance,
					voucher:this.advance!=0?this.onAccountImage.join():''
				}, 'POST').then(res => {
					
					if(res.error==0){
						uni.showToast({
							title:'提交成功',
							success(){
								setTimeout(function(){
									uni.navigateBack()
								},500)
							}
						})
					}
					//console.log(res)
				})
			}
			
			
		}
	}
</script>

<style>
	@import url("./orderDetails.css");
</style>
